| Run ID | 作者 | 问题 | 语言 | 测评结果 | Time | Memory | 代码长度 | 提交时间 |
|---|---|---|---|---|---|---|---|---|
| 67080 | 胡海峰老师 | 22第n项的数 | Python3 | Wrong Answer | 28 MS | 3796 KB | 225 | 2024-03-13 21:07:49 |
n = int(input()) a,b,c,d = input().split() a,b,c,d = int(a),int(b),int(c),int(d) if b-a== c-b == d-c: #等差数列 res = d + (n-4)* (b-a) else: #等比数列 res = d * (n-4) *(b//a) print(res)
------Input------
10 1 5 25 125
------Answer-----
1953125
------Your output-----
3750