111622024-07-07 22:54:18probaFarmula 1python3Runtime error 20/10043ms3192 KiB
for i in range(int(input())):
    F = 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+(len(D)-D.count(25))*25

    print('Champion' if sum(D) >= F else 'Practice harder')
SubtaskSumTestVerdictTimeMemory
subtask10/0
1Runtime error17ms3044 KiB
subtask20/20
2Runtime error18ms3176 KiB
3Accepted26ms2932 KiB
subtask320/20
4Accepted43ms3192 KiB
5Accepted43ms3192 KiB
6Accepted43ms3044 KiB
7Accepted35ms3044 KiB
subtask40/60
8Runtime error17ms3044 KiB
9Runtime error17ms2968 KiB
10Runtime error17ms3044 KiB
11Runtime error18ms3064 KiB