Run ID 作者 问题 语言 测评结果 Time Memory 代码长度 提交时间
634 关清声 累加问题 C++ Accepted 1 MS 260 KB 230 2023-01-07 20:34:26

Tests(1/1):


Code:

#include<iostream> using namespace std; int jia(int a) { if(a<100) { cout<<a<<endl; return jia(a+1); } else { cout<<a<<endl; return a; } } int main() { int x; cin>>x; x=jia(x+1); return 0; }