Run ID 作者 问题 语言 测评结果 Time Memory 代码长度 提交时间
101012 杜洛雨泽 12序列的第n项 C++ Accepted 1 MS 272 KB 163 2024-12-14 12:28:30

Tests(10/10):


Code:

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