8725 | 2024-01-26 18:22:40 | NagyLeo | Kiváló számok 2 | pypy3 | Wrong answer 0/100 | 48ms | 79032 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}")
Subtask | Sum | Test | Verdict | Time | Memory | ||
---|---|---|---|---|---|---|---|
subtask1 | 0/0 | ||||||
1 | Wrong answer | 41ms | 76484 KiB | ||||
subtask2 | 0/13 | ||||||
2 | Wrong answer | 46ms | 76484 KiB | ||||
3 | Wrong answer | 43ms | 76452 KiB | ||||
subtask3 | 0/24 | ||||||
4 | Wrong answer | 39ms | 76388 KiB | ||||
5 | Wrong answer | 48ms | 76656 KiB | ||||
6 | Wrong answer | 43ms | 77456 KiB | ||||
7 | Wrong answer | 39ms | 77448 KiB | ||||
subtask4 | 0/34 | ||||||
8 | Wrong answer | 39ms | 77204 KiB | ||||
9 | Wrong answer | 39ms | 77976 KiB | ||||
10 | Wrong answer | 39ms | 78008 KiB | ||||
11 | Wrong answer | 39ms | 78292 KiB | ||||
subtask5 | 0/29 | ||||||
12 | Wrong answer | 46ms | 78440 KiB | ||||
13 | Wrong answer | 43ms | 78644 KiB | ||||
14 | Wrong answer | 39ms | 78660 KiB | ||||
15 | Wrong answer | 39ms | 78464 KiB | ||||
16 | Wrong answer | 39ms | 78952 KiB | ||||
17 | Wrong answer | 39ms | 79032 KiB | ||||
18 | Wrong answer | 39ms | 79004 KiB |