#include using namespace std; int main() { int n=1,m,s=0; cin >> m; while(n<=m){ s = s + n; n++; } cout << s; return 0; }
#include using namespace std; int main() { int n; cin >> n; while(){ n++; } cout << s;
return 0;
}
大概是
注册一个 XSM 通用账户,您就可以在我们提供的所有在线评测服务上提交代码、参与讨论。
使用您的 XSM 通用账户