Run ID | 作者 | 问题 | 语言 | 测评结果 | Time | Memory | 代码长度 | 提交时间 |
---|---|---|---|---|---|---|---|---|
5657 | 翟** | 12序列的第n项 | C++ | Wrong Answer | 0 MS | 260 KB | 179 | 2024-12-08 09:51:31 |
#include<iostream> using namespace std; int main(){ int n,a=1; cin>>n; for(int i=2;i<=n;i++){ a=a+i-1; } cout<<a<<endl; return 0; }
------Input------
13
------Answer-----
67
------Your output-----
79