111592024-07-07 22:25:13probaFarmula 1python3Runtime error 0/10018ms3104 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 [i for i in input().split(' ')]:
        try:
            egesz = int(i)
            if egesz == 1:
                daniel += 25
                fantom += 18
            elif egesz<11:
                daniel += h[i-1]
                fantom += 25
            else:
                fantom += 25
        except:
            fantom += 25
    print('Champion' if daniel >= fantom else 'Practice harder')
        
    
    
    
    
    
    
SubtaskSumTestVerdictTimeMemory
subtask10/0
1Runtime error17ms2916 KiB
subtask20/20
2Runtime error17ms2916 KiB
3Runtime error17ms3096 KiB
subtask30/20
4Runtime error17ms2920 KiB
5Runtime error17ms2960 KiB
6Runtime error17ms2888 KiB
7Runtime error17ms2916 KiB
subtask40/60
8Runtime error17ms2892 KiB
9Runtime error18ms3104 KiB
10Runtime error18ms2916 KiB
11Runtime error17ms2952 KiB