T = int(input())
h = [25, 18, 15, 12, 10, 8, 6, 4, 2, 1]
for i in range(T):
F = input()
daniel, fantom = 0, 0
for j in [i for i in input().split(' ')]:
try:
egesz = int(j)
if egesz == 1:
daniel += 25
fantom += 18
elif egesz<11:
daniel += h[egesz-1]
fantom += 25
else:
fantom += 25
except:
fantom += 25
print('Champion' if daniel >= fantom else 'Practice harder')
Subtask | Sum | Test | Verdict | Time | Memory | ||
---|---|---|---|---|---|---|---|
subtask1 | 0/0 | ||||||
1 | Accepted | 17ms | 3044 KiB | ||||
subtask2 | 20/20 | ||||||
2 | Accepted | 26ms | 3044 KiB | ||||
3 | Accepted | 26ms | 3044 KiB | ||||
subtask3 | 20/20 | ||||||
4 | Accepted | 57ms | 3164 KiB | ||||
5 | Accepted | 57ms | 3112 KiB | ||||
6 | Accepted | 57ms | 3220 KiB | ||||
7 | Accepted | 41ms | 3108 KiB | ||||
subtask4 | 60/60 | ||||||
8 | Accepted | 59ms | 3228 KiB | ||||
9 | Accepted | 59ms | 3044 KiB | ||||
10 | Accepted | 56ms | 3192 KiB | ||||
11 | Accepted | 41ms | 3044 KiB |