111652024-07-07 23:05:13probaFarmula 1python3Runtime error 0/10018ms3096 KiB
T = int(input())

for i in range(T):
    Futm = int(input())
    
    D = [25 if i=='1' else [25, 18, 15, 12, 10, 8, 6, 4, 2, 1][int(i)-1] if ((i>'1' and i<='9') or i=='10') else 0  for i in input().split(' ')]
    
    F = D.count(25)*18+(Futam-D.count(25))*25
    
    print('Champion' if sum(D) >= F else 'Practice harder')
SubtaskSumTestVerdictTimeMemory
subtask10/0
1Runtime error17ms3044 KiB
subtask20/20
2Runtime error17ms3048 KiB
3Runtime error17ms3044 KiB
subtask30/20
4Runtime error17ms2960 KiB
5Runtime error18ms2952 KiB
6Runtime error17ms2996 KiB
7Runtime error18ms3052 KiB
subtask40/60
8Runtime error18ms3096 KiB
9Runtime error17ms2888 KiB
10Runtime error17ms3044 KiB
11Runtime error17ms2960 KiB