| Run ID | 作者 | 问题 | 语言 | 测评结果 | Time | Memory | 代码长度 | 提交时间 |
|---|---|---|---|---|---|---|---|---|
| 68234 | 金浩 | 小明养猪的故事 | Python3 | Wrong Answer | 32 MS | 3760 KB | 169 | 2024-03-21 10:56:48 |
def f(x): if x==1 or x==2: return x else: return 2*f(x-1)-1 T=int(input()) for i in range(T): N=int(input()) a=f(N) print(a)
------Input------
17 1 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19
------Answer-----
1 5 8 13 21 34 55 89 144 233 377 610 987 1597 2584 4181 6765
------Your output-----
1 5 9 17 33 65 129 257 513 1025 2049 4097 8193 16385 32769 65537 131073