Run ID | 作者 | 问题 | 语言 | 测评结果 | Time | Memory | 代码长度 | 提交时间 |
---|---|---|---|---|---|---|---|---|
102742 | 唐诗阳 | 12序列找规律 | C++ | Wrong Answer | 1 MS | 276 KB | 473 | 2024-12-22 15:12:24 |
#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=2;i<=n;i++){ if(i%2==0){ b-2; } else{ a-1; } } if(n%2==0){ cout<<b; } else{ cout<<a; } return 0; }
------Input------
5
------Answer-----
9998
------Your output-----
10000