111672024-07-07 23:07:41probaFarmula 1python3Runtime error 20/10043ms3176 KiB
T = int(input())

for i in range(T):
    
    Futam = 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(' ')]
    
    db = D.count(25)
    Fantom = db*18+(len(D)-db)*25
    
    print('Champion' if sum(D) >= Fantom else 'Practice harder')
SubtaskSumTestVerdictTimeMemory
subtask10/0
1Runtime error17ms3044 KiB
subtask20/20
2Runtime error17ms2836 KiB
3Accepted26ms3044 KiB
subtask320/20
4Accepted43ms3032 KiB
5Accepted41ms3080 KiB
6Accepted43ms3084 KiB
7Accepted35ms2980 KiB
subtask40/60
8Runtime error17ms2996 KiB
9Runtime error17ms3176 KiB
10Runtime error18ms3044 KiB
11Runtime error18ms3044 KiB