Run ID 作者 问题 语言 测评结果 Time Memory 代码长度 提交时间
100474 陈治宸 12序列的第n项 C++ Accepted 1 MS 280 KB 169 2024-12-08 09:36:45

Tests(10/10):


Code:

#include<iostream> using namespace std; int main(){ int n,ans=1; cin>>n; for(int j=0;j<n-1;j++) ans+=j; cout<<ans<<endl; return 0; }