Run ID 作者 问题 语言 测评结果 Time Memory 代码长度 提交时间
74056 王馨桐 12序列的第n项 C++ Accepted 0 MS 272 KB 165 2024-05-21 19:44:35

Tests(10/10):


Code:

#include<bits/stdc++.h> using namespace std; int main(){ int x = 1; int a; cin >>a; for(int i=1; i<=a-2; i++){ x = x+i; } cout <<x; return 0; }