Run ID 作者 问题 语言 测评结果 Time Memory 代码长度 提交时间
123912 李昊宇 12序列找规律 C++ Accepted 1 MS 276 KB 206 2025-07-10 14:54:12

Tests(10/10):


Code:

#include<bits/stdc++.h> using namespace std; int main(){ int a=10000; int n; cin>>n; if(n%2==0){ a = a-(n/2-1)*2; } else{ a = a-(n/2); } cout<<a; return 0; }