Run ID 作者 问题 语言 测评结果 Time Memory 代码长度 提交时间
137166 万麟峰 12序列的第n项 C++ Accepted 2 MS 272 KB 440 2025-11-16 12:21:50

Tests(10/10):


Code:

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