Run ID 作者 问题 语言 测评结果 Time Memory 代码长度 提交时间
111508 毛靖平 12序列的第n项 C++ Accepted 1 MS 272 KB 147 2025-03-02 14:48:49

Tests(10/10):


Code:

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