| Run ID | 作者 | 问题 | 语言 | 测评结果 | Time | Memory | 代码长度 | 提交时间 |
|---|---|---|---|---|---|---|---|---|
| 137144 | 王安安 | 12序列的第n项 | C++ | Wrong Answer | 1 MS | 268 KB | 154 | 2025-11-16 12:03:46 |
#include<bits/stdc++.h> using namespace std; int main(){ int i,n,a=0,b=1; cin>>n; for(i=1;i<=n;i++){ b+=a; a+=1; } cout<<b; return 0; }
------Input------
5
------Answer-----
7
------Your output-----
11