Run ID 作者 问题 语言 测评结果 Time Memory 代码长度 提交时间
149048 王峻熙 12序列的第n项 C++ Accepted 0 MS 272 KB 178 2026-03-07 09:18:20

Tests(10/10):


Code:

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