Run ID 作者 问题 语言 测评结果 Time Memory 代码长度 提交时间
83823 付博苏逸 12序列的第n项 C++ Accepted 1 MS 276 KB 206 2024-07-15 08:51:10

Tests(10/10):


Code:

#include<iostream> using namespace std; int main(){ int n,an=1; cin>>n; for(int i = 0;i < n-1;i++){ an = an+i; } cout<<an<<endl; return 0; }