Run ID 作者 问题 语言 测评结果 Time Memory 代码长度 提交时间
7609 邓小龙 12序列找规律 C++ Accepted 4 MS 268 KB 434 2025-05-07 18:25:03

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<<endl; return 0; }