Run ID 作者 问题 语言 测评结果 Time Memory 代码长度 提交时间
159447 钱炜懿 12序列找规律 C++ Accepted 1 MS 272 KB 206 2026-08-31 12:55:34

Tests(10/10):


Code:

#include<bits/stdc++.h> using namespace std; int main(){ int X,A; cin>>X; if(X%2==0){ A=10002-X; } else{ A=10001-(X+1)/2; } cout<<A; return 0; }