111702024-07-07 23:30:57probaFarmula 1python3Wrong answer 0/10067ms3228 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 h==1 else [25, 18, 15, 12, 10, 8, 6, 4, 2, 1][h-1] if h>1 and h<=10 else 0
    except:
            pass
    print(d, len(x),D)    
    Fantom = d*18+(len(x)-d)*25
    
    print('Champion' if D >= Fantom else 'Practice harder')
SubtaskSumTestVerdictTimeMemory
subtask10/0
1Wrong answer17ms3044 KiB
subtask20/20
2Wrong answer28ms3084 KiB
3Wrong answer28ms3044 KiB
subtask30/20
4Wrong answer65ms3132 KiB
5Wrong answer61ms3228 KiB
6Wrong answer63ms3192 KiB
7Wrong answer43ms3044 KiB
subtask40/60
8Wrong answer67ms3140 KiB
9Wrong answer64ms3172 KiB
10Wrong answer64ms3192 KiB
11Wrong answer45ms2920 KiB