8726 | 2024-01-26 18:23:43 | NagyLeo | Kiváló számok 2 | pypy3 | Wrong answer 0/100 | 1.103s | 87208 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 == 0:
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 | 41ms | 76496 KiB | ||||
subtask2 | 0/13 | ||||||
2 | Wrong answer | 48ms | 76756 KiB | ||||
3 | Wrong answer | 43ms | 77100 KiB | ||||
subtask3 | 0/24 | ||||||
4 | Wrong answer | 50ms | 86476 KiB | ||||
5 | Wrong answer | 50ms | 86920 KiB | ||||
6 | Wrong answer | 50ms | 86624 KiB | ||||
7 | Wrong answer | 50ms | 87208 KiB | ||||
subtask4 | 0/34 | ||||||
8 | Time limit exceeded | 1.062s | 32600 KiB | ||||
9 | Time limit exceeded | 1.059s | 32776 KiB | ||||
10 | Time limit exceeded | 1.059s | 31684 KiB | ||||
11 | Time limit exceeded | 1.047s | 32456 KiB | ||||
subtask5 | 0/29 | ||||||
12 | Time limit exceeded | 1.055s | 36804 KiB | ||||
13 | Time limit exceeded | 1.054s | 36896 KiB | ||||
14 | Time limit exceeded | 1.103s | 37720 KiB | ||||
15 | Time limit exceeded | 1.054s | 36996 KiB | ||||
16 | Time limit exceeded | 1.049s | 37288 KiB | ||||
17 | Time limit exceeded | 1.059s | 37240 KiB | ||||
18 | Time limit exceeded | 1.064s | 37500 KiB |