Run ID 作者 问题 语言 测评结果 Time Memory 代码长度 提交时间
158890 任艺宸 累加问题 C++ Accepted 4 MS 264 KB 432 2026-08-23 11:32:11

Tests(1/1):


Code:

#include<iostream> // cin\cout\endl #include<cstdio> //scanf()\printf() #include<cstring> // strcpy()\strcat()\strcmp()\strlen()\memset() #include<cmath> //sqrt()\pow()\abs()\ceil()\floor()\max()\min() using namespace std; int as(int x){ if(x==100)return 0; else if(x<100)return x++; } int main(){ int x; for(x=1;x<=100;x++){ as(x); cout<<x<<endl; } return 0; }