Run ID 作者 问题 语言 测评结果 Time Memory 代码长度 提交时间
148788 杨润东 12序列找规律 C++ Accepted 0 MS 272 KB 264 2026-02-28 19:44:47

Tests(10/10):


Code:

#include <iostream> using namespace std; int main() { int n; cin >> n; int result; if (n % 2 == 1) { result = 10000 - (n/2); } else { result = 10000 - (n/2 - 1) * 2; } cout << result << endl; return 0; }