Run ID | 作者 | 问题 | 语言 | 测评结果 | Time | Memory | 代码长度 | 提交时间 |
---|---|---|---|---|---|---|---|---|
94652 | 梁敖铭 | 年龄问题 | C++ | Wrong Answer | 1 MS | 264 KB | 588 | 2024-10-26 09:11:08 |
#include<iostream> // cin\cout\endl #include<cstdio> //scanf()\printf() #include<cstring> // strcpy()\strcat()\strcmp()\strlen()\memset() #include<cstdlib> #include<ctime> #include<cmath> //sqrt()\pow()\abs()\ceil()\floor()\max()\min() using namespace std; /*void a(int x){ if(x>100){ return; } cout<<x++<<endl; a(x); } int main(){ int x=1; a(x); return 0; }*/ void a(int x){ if(x>=18){ return; }x+=2; cout<<x<<endl; a(x); } int main(){ int x=8; a(x); return 0; }
------Input------
0
------Answer-----
18
------Your output-----
10 12 14 16 18