115532024-10-26 18:08:55balintFarmula 1python3Accepted 100/10045ms3320 KiB
POINTS = (25, 18, 15, 12, 10, 8, 6, 4, 2, 1, 0) 

def main():
    for _ in range(int(input())):
        N = int(input())
        nums = list(map(int, input().strip().split()))
        dan = 0
        other = 0
        for num in nums:
            dan += POINTS[min(num-1, 10)]
            if num == 1:
                other += POINTS[1]
            else:
                other += POINTS[0]

        print("Champion" if dan >= other else "Practice harder")

main()
SubtaskSumTestVerdictTimeMemory
subtask10/0
1Accepted16ms3088 KiB
subtask220/20
2Accepted21ms3128 KiB
3Accepted21ms3320 KiB
subtask320/20
4Accepted43ms3184 KiB
5Accepted43ms3312 KiB
6Accepted43ms3144 KiB
7Accepted32ms3128 KiB
subtask460/60
8Accepted45ms3128 KiB
9Accepted45ms2944 KiB
10Accepted43ms3268 KiB
11Accepted32ms3128 KiB