Run ID 作者 问题 语言 测评结果 Time Memory 代码长度 提交时间
130804 李亭绪 12序列的第n项 C++ Accepted 1 MS 272 KB 168 2025-09-17 19:15:49

Tests(10/10):


Code:

#include<iostream> // cin\cout\endl using namespace std; int main(){ int a,b,c=0; a=1; cin>>b; for(int i=2;i<=b;i++) { a+=c; c++; } cout<<a; return 0; }