87252024-01-26 18:22:40NagyLeoKiváló számok 2pypy3Wrong answer 0/10048ms79032 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}")
        
SubtaskSumTestVerdictTimeMemory
subtask10/0
1Wrong answer41ms76484 KiB
subtask20/13
2Wrong answer46ms76484 KiB
3Wrong answer43ms76452 KiB
subtask30/24
4Wrong answer39ms76388 KiB
5Wrong answer48ms76656 KiB
6Wrong answer43ms77456 KiB
7Wrong answer39ms77448 KiB
subtask40/34
8Wrong answer39ms77204 KiB
9Wrong answer39ms77976 KiB
10Wrong answer39ms78008 KiB
11Wrong answer39ms78292 KiB
subtask50/29
12Wrong answer46ms78440 KiB
13Wrong answer43ms78644 KiB
14Wrong answer39ms78660 KiB
15Wrong answer39ms78464 KiB
16Wrong answer39ms78952 KiB
17Wrong answer39ms79032 KiB
18Wrong answer39ms79004 KiB