Run ID 作者 问题 语言 测评结果 Time Memory 代码长度 提交时间
113929 罗睿妍 12序列的第n项 C++ Accepted 1 MS 268 KB 174 2025-03-17 19:28:40

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; }