111552024-07-07 22:12:44probaFarmula 1python3Runtime error 0/10018ms2988 KiB
#T = 4
T = int(input())
'''
adat = '''5
1 2 2 1 1
5
8 1 1 2 3
4
2 2 1 1
9
5 11 3 1 1 4 6 2 1'''
sorok = adat.strip().split('\n')
'''

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

for i in range(T):
    #F = int(sorok[i*2])
    F = input()
    
    daniel, fantom = 0, 0
    #for i in [int(i) for i in sorok[i*2+1].split(' ')]:
    for i in [int(i) for i in input().split(' ')]:
        if i == 1:
            daniel += 25
            fantom += 18
        elif i<11:
            daniel += h[i-1]
            fantom += 25
        else:
            fantom += 25
    print('Champion' if daniel >= fantom else 'Practice harder')
        
    
    
    
    
    
    
SubtaskSumTestVerdictTimeMemory
subtask10/0
1Runtime error17ms2916 KiB
subtask20/20
2Runtime error17ms2916 KiB
3Runtime error17ms2936 KiB
subtask30/20
4Runtime error17ms2916 KiB
5Runtime error17ms2788 KiB
6Runtime error18ms2952 KiB
7Runtime error17ms2988 KiB
subtask40/60
8Runtime error17ms2916 KiB
9Runtime error17ms2916 KiB
10Runtime error17ms2932 KiB
11Runtime error17ms2940 KiB