Run ID 作者 问题 语言 测评结果 Time Memory 代码长度 提交时间
68223 吕毅心 12序列找规律 C++ Accepted 1 MS 272 KB 219 2024-03-20 22:18:32

Tests(10/10):


Code:

# include<iostream> using namespace std; int main() { int j,i=10000,k; cin>>j; if(j%2==1) { k=i-(j-1)/2; } else { k=i-(j-2); } cout<<k; return 0; }