Run ID | 作者 | 问题 | 语言 | 测评结果 | Time | Memory | 代码长度 | 提交时间 |
---|---|---|---|---|---|---|---|---|
100782 | 江梵睿 | 12序列找规律 | C++ | Wrong Answer | 1 MS | 276 KB | 476 | 2024-12-13 18:54:19 |
#include<iostream> // cin\cout\endl #include<cstdio> //scanf()\printf() #include<cstring> // strcpy()\strcat()\strcmp()\strlen()\memset() #include<cmath> //sqrt()\pow()\abs()\ceil()\floor()\max()\min() using namespace std; int main(){ int i,a,b,c; cin>>a; a-=2; b=10000; c=10000; for(i=1;i<a;i++){ b-=2; c-=1; } if(a%2==1){ cout<<c; } else{ cout<<b; } return 0; }
------Input------
13
------Answer-----
9994
------Your output-----
9990