Run ID | 作者 | 问题 | 语言 | 测评结果 | Time | Memory | 代码长度 | 提交时间 |
---|---|---|---|---|---|---|---|---|
101052 | 何睿函 | 12序列的第n项 | C++ | Wrong Answer | 1 MS | 272 KB | 159 | 2024-12-14 13:15:43 |
#include<bits/stdc++.h> using namespace std; int main(){ int a=1; int n;cin>>n; for(int i=0;i<n-2;i++){ cout<<a<<" "; a=a+i; } return 0; }
------Input------
5
------Answer-----
7
------Your output-----
1 1 2