111602024-07-07 22:26:53probaFarmula 1python3Wrong answer 0/10074ms3188 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:
            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
1Wrong answer17ms3044 KiB
subtask20/20
2Wrong answer28ms3044 KiB
3Wrong answer28ms3068 KiB
subtask30/20
4Wrong answer74ms3044 KiB
5Wrong answer74ms3088 KiB
6Wrong answer71ms3108 KiB
7Wrong answer48ms3044 KiB
subtask40/60
8Wrong answer74ms3052 KiB
9Wrong answer71ms3172 KiB
10Wrong answer71ms3044 KiB
11Wrong answer48ms3188 KiB