115522024-10-26 18:00:25balintFarmula 1python3Wrong answer 20/10030ms3252 KiB
def main():
    for _ in range(int(input())):
        N = int(input())
        nums = list(map(int, input().strip().split()))
        threshold = N // 2
        champion_count = nums.count(1)

        if champion_count > threshold:
            print("Champion")
        elif champion_count == threshold and N % 2 == 0:
            print("Champion")
        else:
            print("Practice harder")

main()
SubtaskSumTestVerdictTimeMemory
subtask10/0
1Accepted16ms2872 KiB
subtask20/20
2Wrong answer21ms3128 KiB
3Accepted20ms3128 KiB
subtask320/20
4Accepted29ms3216 KiB
5Accepted29ms3020 KiB
6Accepted30ms3100 KiB
7Accepted25ms3128 KiB
subtask40/60
8Wrong answer30ms3252 KiB
9Wrong answer30ms3112 KiB
10Wrong answer29ms3052 KiB
11Wrong answer26ms3196 KiB