| Run ID | 作者 | 问题 | 语言 | 测评结果 | Time | Memory | 代码长度 | 提交时间 |
|---|---|---|---|---|---|---|---|---|
| 67079 | 胡海峰老师 | 22第n项的数 | Python3 | Wrong Answer | 30 MS | 3760 KB | 224 | 2024-03-13 21:06:55 |
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------
5 1 2 4 8
------Answer-----
16
------Your output-----
16.0