Run ID 作者 问题 语言 测评结果 时间 内存 代码长度 提交时间
44648 yuzhengxun 求1+2+3+... C++ 通过 0 MS 248 KB 148 2024-03-31 18:26:38

Tests(1/1):


#include<bits/stdc++.h> using namespace std; int main() { int n,s=0; cin>>n; for(int i=1;i<=n;i++){ s+=i; } cout<<s; return 0; }


测评信息: