8731 | 2024-01-26 18:55:48 | NagyLeo | Kiváló számok 2 | pypy3 | Wrong answer 13/100 | 50ms | 79368 KiB |
MOD = 10**9 + 7
def count_excellent_3():
_ = int(input().strip())
for __ in range(_):
N = int(input().strip())
if N % 2 == 0:
last = (pow(2, N, MOD) + 2) // 3
else:
last = (pow(2, N, MOD) - 2) // 3
print(f"{last % MOD}")
count_excellent_3()
Subtask | Sum | Test | Verdict | Time | Memory | ||
---|---|---|---|---|---|---|---|
subtask1 | 0/0 | ||||||
1 | Wrong answer | 43ms | 76316 KiB | ||||
subtask2 | 13/13 | ||||||
2 | Accepted | 39ms | 76512 KiB | ||||
3 | Accepted | 39ms | 76600 KiB | ||||
subtask3 | 0/24 | ||||||
4 | Wrong answer | 39ms | 76892 KiB | ||||
5 | Wrong answer | 46ms | 77964 KiB | ||||
6 | Wrong answer | 43ms | 77176 KiB | ||||
7 | Wrong answer | 39ms | 77784 KiB | ||||
subtask4 | 0/34 | ||||||
8 | Wrong answer | 39ms | 77720 KiB | ||||
9 | Wrong answer | 46ms | 77896 KiB | ||||
10 | Wrong answer | 43ms | 78764 KiB | ||||
11 | Wrong answer | 46ms | 79232 KiB | ||||
subtask5 | 0/29 | ||||||
12 | Wrong answer | 43ms | 78704 KiB | ||||
13 | Wrong answer | 39ms | 78732 KiB | ||||
14 | Wrong answer | 46ms | 79316 KiB | ||||
15 | Wrong answer | 43ms | 79328 KiB | ||||
16 | Wrong answer | 50ms | 79368 KiB | ||||
17 | Wrong answer | 43ms | 79168 KiB | ||||
18 | Wrong answer | 39ms | 79208 KiB |