Run ID 作者 问题 语言 测评结果 Time Memory 代码长度 提交时间
7548 侯宜辰 12序列找规律 C++ Accepted 0 MS 268 KB 428 2025-05-03 15:18:22

Tests(10/10):


Code:

#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 N,A; cin>>N; if (N%2==1) { A=10000-(N-1)/2; } else { A=10000-(N-2); } cout<<A; return 0; }