| Run ID | 作者 | 问题 | 语言 | 测评结果 | Time | Memory | 代码长度 | 提交时间 |
|---|---|---|---|---|---|---|---|---|
| 159488 | 张宇泽 | 22第n项的数 | C++ | Accepted | 1 MS | 276 KB | 304 | 2026-09-02 20:10:04 |
#include<bits/stdc++.h> using namespace std; int main() { int n,a,b,c,d; cin>>n>>a>>b>>c>>d; if(b-a==c-b&&c-b==d-c){ int e=a+(n-1)*(b-a); cout<<e; }else{ int m=a; for(int i=2;i<=n;i++) { m*=b/a; } cout<<m; } return 0; }