| Run ID | 作者 | 问题 | 语言 | 测评结果 | Time | Memory | 代码长度 | 提交时间 |
|---|---|---|---|---|---|---|---|---|
| 130816 | 李亭绪 | 12序列找规律 | C++ | Wrong Answer | 1 MS | 272 KB | 255 | 2025-09-17 19:58:24 |
#include<iostream> // cin\cout\endl using namespace std; int main(){ int a,b,c=10000,d=10000,e; a=10000; cin>>b; for(int i=3;i<=b;i++) { if(i%2==0) { c-=1; } else { d-=2; } if(i%2==0) { cout<<c; } else { cout<<d; } return 0; } }
------Input------
13
------Answer-----
9994
------Your output-----
9998