111682024-07-07 23:25:45probaFarmula 1python3Wrong answer 0/10059ms3444 KiB
T = int(input())

for i in range(T):
    
    Futam = input()
    
    x = [i for i in input().split(' ')]
    D, d = 0, 0
    
    try:
        for i in x:
            h = int(i)
            d += 1 if h == 1 else 0
            D += 25 if i==1 else [25, 18, 15, 12, 10, 8, 6, 4, 2, 1][h-1] if h>2 and h<=10 else 0
    except:
            pass
    
    Fantom = d*18+(len(x)-d)*25
    
    print('Champion' if D >= Fantom else 'Practice harder')
SubtaskSumTestVerdictTimeMemory
subtask10/0
1Wrong answer17ms3044 KiB
subtask20/20
2Wrong answer27ms3184 KiB
3Wrong answer26ms3192 KiB
subtask30/20
4Wrong answer57ms3080 KiB
5Wrong answer59ms3088 KiB
6Wrong answer57ms3044 KiB
7Wrong answer41ms3104 KiB
subtask40/60
8Wrong answer59ms3044 KiB
9Wrong answer59ms3044 KiB
10Wrong answer59ms3100 KiB
11Wrong answer41ms3444 KiB