Run ID 作者 问题 语言 测评结果 Time Memory 代码长度 提交时间
137168 傅小轩 12序列的第n项 C++ Accepted 1 MS 280 KB 170 2025-11-16 12:24:24

Tests(10/10):


Code:

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