| Run ID | 作者 | 问题 | 语言 | 测评结果 | Time | Memory | 代码长度 | 提交时间 |
|---|---|---|---|---|---|---|---|---|
| 149052 | 编程星球02 | 12序列找规律 | C++ | Accepted | 0 MS | 272 KB | 290 | 2026-03-07 10:11:12 |
#include<iostream> using namespace std; int main(){ int n,s1=10000,s2=10000; cin>>n; for(int i=1;i<=(n-1)/2;i++){ s1-=1; s2-=2; } if(n%2){ cout<<s1<<endl; } else{ cout<<s2<<endl; } return 0; }