111642024-07-07 23:02:37probaFarmula 1python3Runtime error 20/10043ms3316 KiB
T = int(input())

for i in range(T):
    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
4Accepted43ms3104 KiB
5Accepted43ms3048 KiB
6Accepted41ms2952 KiB
7Accepted34ms3080 KiB
subtask40/60
8Runtime error18ms2956 KiB
9Runtime error17ms2956 KiB
10Runtime error18ms3100 KiB
11Runtime error17ms3316 KiB