111632024-07-07 23:00:56probaFarmula 1python3Runtime error 20/10043ms3216 KiB
for i in range(int(input())):
    F = 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(' ')]
    # print(D)
    Dnyer = D.count(25)
    F = Dnyer*18+(F-Dnyer)*25
    # print(sum(D), F)
    print('Champion' if sum(D) >= F else 'Practice harder')
SubtaskSumTestVerdictTimeMemory
subtask10/0
1Runtime error17ms3044 KiB
subtask20/20
2Runtime error17ms3044 KiB
3Accepted26ms3044 KiB
subtask320/20
4Accepted43ms3044 KiB
5Accepted41ms3008 KiB
6Accepted43ms3216 KiB
7Accepted34ms3032 KiB
subtask40/60
8Runtime error17ms3052 KiB
9Runtime error17ms3064 KiB
10Runtime error18ms2960 KiB
11Runtime error17ms3172 KiB