Run ID:119989
提交时间:2025-05-23 20:25:32
#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; }