| Run ID | 作者 | 问题 | 语言 | 测评结果 | Time | Memory | 代码长度 | 提交时间 |
|---|---|---|---|---|---|---|---|---|
| 139242 | 鲁博睿 | 22第n项的数 | C++ | Wrong Answer | 0 MS | 268 KB | 278 | 2025-12-05 22:20:16 |
#include<bits/stdc++.h> using namespace std; int main(){ int n,x[10]; cin>>n; for(int i=0;i<4;i++){ cin>>x[i]; } int a=x-x; int b=x[2]-x[1]; if(a==b){ cout<<x+(n-1)*a; } else{ cout<<int(x[0]*4*(x[1]/x[0],n-1)); } return 0; }
------Input------
6 1 6 11 16
------Answer-----
26
------Your output-----
20