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()
Részfeladat | Összpont | Teszt | Verdikt | Idő | Memória | ||
---|---|---|---|---|---|---|---|
subtask1 | 0/0 | ||||||
1 | Elfogadva | 16ms | 3088 KiB | ||||
subtask2 | 20/20 | ||||||
2 | Elfogadva | 21ms | 3128 KiB | ||||
3 | Elfogadva | 21ms | 3320 KiB | ||||
subtask3 | 20/20 | ||||||
4 | Elfogadva | 43ms | 3184 KiB | ||||
5 | Elfogadva | 43ms | 3312 KiB | ||||
6 | Elfogadva | 43ms | 3144 KiB | ||||
7 | Elfogadva | 32ms | 3128 KiB | ||||
subtask4 | 60/60 | ||||||
8 | Elfogadva | 45ms | 3128 KiB | ||||
9 | Elfogadva | 45ms | 2944 KiB | ||||
10 | Elfogadva | 43ms | 3268 KiB | ||||
11 | Elfogadva | 32ms | 3128 KiB |