Run ID 作者 问题 语言 测评结果 Time Memory 代码长度 提交时间
86032 罗迎甲 12序列的第n项 C++ Accepted 1 MS 272 KB 157 2024-07-21 17:34:03

Tests(10/10):


Code:

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