8727 | 2024-01-26 18:26:25 | NagyLeo | Kiváló számok 2 | pypy3 | Wrong answer 0/100 | 1.08s | 86796 KiB |
MOD = 10**9 + 7
def count_excellent_2():
_ = int(input().strip())
for __ in range(_):
N = int(input().strip())
last = 0
for i in range(1, N+1):
if i % 2 == 1:
last = last*2+2
else:
last = last*2-2
print(f"{last % MOD}")
count_excellent_2()
Subtask | Sum | Test | Verdict | Time | Memory | ||
---|---|---|---|---|---|---|---|
subtask1 | 0/0 | ||||||
1 | Wrong answer | 48ms | 76364 KiB | ||||
subtask2 | 0/13 | ||||||
2 | Wrong answer | 43ms | 76696 KiB | ||||
3 | Wrong answer | 46ms | 76816 KiB | ||||
subtask3 | 0/24 | ||||||
4 | Wrong answer | 54ms | 86304 KiB | ||||
5 | Wrong answer | 57ms | 86712 KiB | ||||
6 | Wrong answer | 50ms | 86288 KiB | ||||
7 | Wrong answer | 61ms | 86796 KiB | ||||
subtask4 | 0/34 | ||||||
8 | Time limit exceeded | 1.08s | 31800 KiB | ||||
9 | Time limit exceeded | 1.027s | 32544 KiB | ||||
10 | Time limit exceeded | 1.059s | 30924 KiB | ||||
11 | Time limit exceeded | 1.044s | 32116 KiB | ||||
subtask5 | 0/29 | ||||||
12 | Time limit exceeded | 1.057s | 36736 KiB | ||||
13 | Time limit exceeded | 1.042s | 36972 KiB | ||||
14 | Time limit exceeded | 1.052s | 36868 KiB | ||||
15 | Time limit exceeded | 1.034s | 36928 KiB | ||||
16 | Time limit exceeded | 1.057s | 37288 KiB | ||||
17 | Time limit exceeded | 1.06s | 37544 KiB | ||||
18 | Time limit exceeded | 1.057s | 37756 KiB |