111692024-07-07 23:27:48probaFarmula 1python3Wrong answer 0/10061ms3232 KiB
T = int(input())

for i in range(T):
    
    Futam = input()
    
    x = [i for i in input().split(' ')]
    D, d = 0, 0
    
    try:
        for i in x:
            h = int(i)
            d += 1 if h == 1 else 0
            D += 25 if h==1 else [25, 18, 15, 12, 10, 8, 6, 4, 2, 1][h-1] if h>2 and h<=10 else 0
    except:
            pass
    
    Fantom = d*18+(len(x)-d)*25
    
    print('Champion' if D >= Fantom else 'Practice harder')
SubtaskSumTestVerdictTimeMemory
subtask10/0
1Wrong answer17ms3044 KiB
subtask20/20
2Wrong answer26ms3044 KiB
3Wrong answer27ms3044 KiB
subtask30/20
4Wrong answer59ms3232 KiB
5Wrong answer56ms3172 KiB
6Wrong answer59ms3044 KiB
7Wrong answer41ms3216 KiB
subtask40/60
8Wrong answer61ms3172 KiB
9Wrong answer57ms3176 KiB
10Wrong answer57ms3088 KiB
11Wrong answer41ms3044 KiB