Run ID | 作者 | 问题 | 语言 | 测评结果 | Time | Memory | 代码长度 | 提交时间 |
---|---|---|---|---|---|---|---|---|
102744 | 唐诗阳 | 12序列找规律 | C++ | Compile Error | 0 MS | 0 KB | 474 | 2024-12-22 15:21:49 |
#include<iostream> #include<cstdio> //scanf()\printf() #include<cstring> #include<cmath> //sqrt()\pow()\abs()\ceil()\floor()\max()\min() using namespace std; int main(){ int n,a=10000,b=10000; cin>>n; for(int i=3;i<=n;i++){ if(i%2==0){ b-=2; } else{ a-=1; } } if(n%2==0){ cout<<b; } else{ cout<<a; } return 0;
Main.cc: In function 'int main()': Main.cc:23:17: error: expected '}' at end of input return 0; ^