| Run ID | 作者 | 问题 | 语言 | 测评结果 | Time | Memory | 代码长度 | 提交时间 |
|---|---|---|---|---|---|---|---|---|
| 123953 | 陈国川 | 13分苹果 | C++ | Compile Error | 0 MS | 0 KB | 159 | 2025-07-10 15:20:55 |
#include<iostream> using namespace std; int main(){ int n; cin>>n; if(n%2==0){ cout<<(n+1)*(n/2) } else{cout<<(n+1)*(n-1)/2+(n+1)/2 } return 0; }
Main.cc: In function 'int main()': Main.cc:8:1: error: expected ';' before '}' token } ^ Main.cc:10:1: error: expected ';' before '}' token } ^