111612024-07-07 22:33:08probaFarmula 1python3Accepted 100/10059ms3228 KiB
T = int(input())

h = [25, 18, 15, 12, 10, 8, 6, 4, 2, 1]

for i in range(T):

    F = input()
    
    daniel, fantom = 0, 0

    for j in [i for i in input().split(' ')]:
        try:
            egesz = int(j)
            if egesz == 1:
                daniel += 25
                fantom += 18
            elif egesz<11:
                daniel += h[egesz-1]
                fantom += 25
            else:
                fantom += 25
        except:
            fantom += 25
        
    print('Champion' if daniel >= fantom else 'Practice harder')
        
    
    
    
    
    
    
SubtaskSumTestVerdictTimeMemory
subtask10/0
1Accepted17ms3044 KiB
subtask220/20
2Accepted26ms3044 KiB
3Accepted26ms3044 KiB
subtask320/20
4Accepted57ms3164 KiB
5Accepted57ms3112 KiB
6Accepted57ms3220 KiB
7Accepted41ms3108 KiB
subtask460/60
8Accepted59ms3228 KiB
9Accepted59ms3044 KiB
10Accepted56ms3192 KiB
11Accepted41ms3044 KiB