Run ID 作者 问题 语言 测评结果 Time Memory 代码长度 提交时间
119989 白碣琨 12序列找规律 C++ Accepted 1 MS 272 KB 292 2025-05-23 20:25:32

Tests(10/10):


Code:

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