Run ID | 作者 | 问题 | 语言 | 测评结果 | Time | Memory | 代码长度 | 提交时间 |
---|---|---|---|---|---|---|---|---|
4270 | 黄宜洋 | 12序列找规律 | C++ | Wrong Answer | 0 MS | 268 KB | 361 | 2024-08-15 15:35:00 |
# include<list> # include<iostream> using namespace std; int main(){ int a=10000,b=10000; int n; cin>>n; for(int i=3;i<=n;i++){ if(i%2==1){ a=a-1; } else{ b-=2; } } if(n%2==0){ cout<<a; } else{ cout<<b; } return 0; }
------Input------
13
------Answer-----
9994
------Your output-----
9990