Run ID 作者 问题 语言 测评结果 Time Memory 代码长度 提交时间
159198 王艺博 12序列的第n项 C++ Accepted 1 MS 272 KB 156 2026-08-26 16:35:59

Tests(10/10):


Code:

#include<iostream> using namespace std; int main() { int n=1,x; cin>>x; for(int s=0;s<=x-2;s++){ n=n+s; } cout<<n<<" "; return 0; }