111562024-07-07 22:17:23probaFarmula 1python3Runtime error 20/10052ms3172 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 [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
1Accepted17ms3044 KiB
subtask20/20
2Runtime error17ms3044 KiB
3Accepted25ms3044 KiB
subtask320/20
4Accepted52ms3172 KiB
5Accepted52ms3172 KiB
6Accepted52ms3172 KiB
7Accepted39ms3044 KiB
subtask40/60
8Runtime error17ms3064 KiB
9Runtime error18ms3172 KiB
10Runtime error17ms3044 KiB
11Runtime error17ms3064 KiB