111572024-07-07 22:21:04probaFarmula 1python3Runtime error 0/10017ms3172 KiB
T = int(input())

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

for i in range(T):
    
    F = input()
    
    daniel, fantom = 0, 0
    
    for i in [i for i in input().split(' ')]:
        try:
            szam = int(i)
            if szam == 1:
                daniel, fantom += 25, 18
                
            elif szam<11:
                daniel, fantom += h[i-1], 25
                
            else:
                fantom += 25
        except:
            fantom += 25
            
    print('Champion' if daniel >= fantom else 'Practice harder')
        
    
    
    
    
    
    
SubtaskSumTestVerdictTimeMemory
subtask10/0
1Runtime error17ms3044 KiB
subtask20/20
2Runtime error17ms2936 KiB
3Runtime error17ms2936 KiB
subtask30/20
4Runtime error17ms2960 KiB
5Runtime error17ms3172 KiB
6Runtime error17ms3044 KiB
7Runtime error17ms3064 KiB
subtask40/60
8Runtime error17ms3044 KiB
9Runtime error17ms3156 KiB
10Runtime error17ms2936 KiB
11Runtime error17ms3104 KiB