T = int(input())
h = [25, 18, 15, 12, 10, 8, 6, 2, 1]
for i in range(T):
F = input()
daniel, fantom = 0, 0
for i in [i for i in input().split(' ')]:
try:
szam = int(i)
if szam == 1:
daniel += 25
fantom += 18
elif szam<11:
daniel += h[i-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 | Wrong answer | 17ms | 3044 KiB | ||||
subtask2 | 0/20 | ||||||
2 | Wrong answer | 28ms | 3044 KiB | ||||
3 | Wrong answer | 28ms | 3100 KiB | ||||
subtask3 | 0/20 | ||||||
4 | Wrong answer | 71ms | 2984 KiB | ||||
5 | Wrong answer | 71ms | 3040 KiB | ||||
6 | Wrong answer | 71ms | 3112 KiB | ||||
7 | Wrong answer | 46ms | 3200 KiB | ||||
subtask4 | 0/60 | ||||||
8 | Wrong answer | 71ms | 2972 KiB | ||||
9 | Wrong answer | 72ms | 3172 KiB | ||||
10 | Wrong answer | 70ms | 3172 KiB | ||||
11 | Wrong answer | 48ms | 3172 KiB |