| Run ID | 作者 | 问题 | 语言 | 测评结果 | Time | Memory | 代码长度 | 提交时间 |
|---|---|---|---|---|---|---|---|---|
| 128299 | 吴雨卓 | 22第n项的数 | C++ | Wrong Answer | 1 MS | 268 KB | 178 | 2025-08-14 08:42:13 |
#include<bits/stdc++.h> using namespace std; int main(){ int n,a[101]; cin>>n; for(int i=1;i<=4;i++){ cin>>a[i]; }for(int i=5;i<=n;i++){ a[i]=a[i-1]+1; }cout<<a[n]; }
------Input------
6 1 6 11 16
------Answer-----
26
------Your output-----
18