Run ID | Author | Problem | Lang | Verdict | Time | Memory | Code Length | Submit Time |
---|---|---|---|---|---|---|---|---|
43019 | yuzhengxun | 求和 | C++ | Compile Error | 0 MS | 0 KB | 148 | 2024-03-05 21:18:41 |
#include<iostream> using namespace std; int main() { int n,s; cin>>n; for(int i>0;i<=n;i++){ s+=n; s++; } cout<<s; return 0; }