Run ID 作者 问题 语言 测评结果 Time Memory 代码长度 提交时间
123906 陈华仁星 12序列的第n项 C++ Accepted 1 MS 200 KB 169 2025-07-10 14:46:28

Tests(10/10):


Code:

#include <cstdio> using namespace std; int main() { int a=1; int n; scanf("%d",&n); for(int i=0;i<n-1;i++) { a+=i; } printf("%d",a); return 0; }