| Run ID | 作者 | 问题 | 语言 | 测评结果 | Time | Memory | 代码长度 | 提交时间 |
|---|---|---|---|---|---|---|---|---|
| 149087 | 马俊潇 | 12序列的第n项 | C++ | Wrong Answer | 0 MS | 276 KB | 155 | 2026-03-07 14:09:59 |
#include<iostream> using namespace std; int main(){ int n,a=1; cin>>n; for(int i=0;i<=n;i++){ a=a+(n-a); } cout<<a; return 0;}
------Input------
5
------Answer-----
7
------Your output-----
5