119062024-11-19 13:10:00kochvFarmula 1python3Accepted 100/10046ms3376 KiB
from sys import stdin, stdout
T = int(input())
pontok = [25,18,15,12,10,8,6,4,2,1,0,0,0,0,0,0,0,0,0,0]
for i in range(T):
    N = int(input())
    P = list(map(int,stdin.readline().strip().split()))
    dp , mp = 0, 0
    for h in P:
        dp += pontok[h-1] 
        if h == 1:
            mp+=18
        else:
            mp +=25
    if dp >= mp:
        print("Champion")
    else:
        print("Practice harder")
SubtaskSumTestVerdictTimeMemory
subtask10/0
1Accepted14ms3128 KiB
subtask220/20
2Accepted23ms3128 KiB
3Accepted21ms3128 KiB
subtask320/20
4Accepted43ms3128 KiB
5Accepted41ms3124 KiB
6Accepted43ms3128 KiB
7Accepted30ms3376 KiB
subtask460/60
8Accepted46ms3236 KiB
9Accepted43ms3312 KiB
10Accepted43ms3124 KiB
11Accepted32ms3128 KiB