#T = 4
T = int(input())
'''
adat = '''5
1 2 2 1 1
5
8 1 1 2 3
4
2 2 1 1
9
5 11 3 1 1 4 6 2 1'''
sorok = adat.strip().split('\n')
'''
h = [25, 18, 15, 12, 10, 8, 6, 2, 1]
for i in range(T):
#F = int(sorok[i*2])
F = input()
daniel, fantom = 0, 0
#for i in [int(i) for i in sorok[i*2+1].split(' ')]:
for i in [i for i in input().split(' ')]:
try:
egesz = int(i)
if egesz == 1:
daniel += 25
fantom += 18
elif egesz<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 | Runtime error | 17ms | 2916 KiB | ||||
subtask2 | 0/20 | ||||||
2 | Runtime error | 17ms | 2916 KiB | ||||
3 | Runtime error | 17ms | 3096 KiB | ||||
subtask3 | 0/20 | ||||||
4 | Runtime error | 17ms | 2920 KiB | ||||
5 | Runtime error | 17ms | 2960 KiB | ||||
6 | Runtime error | 17ms | 2888 KiB | ||||
7 | Runtime error | 17ms | 2916 KiB | ||||
subtask4 | 0/60 | ||||||
8 | Runtime error | 17ms | 2892 KiB | ||||
9 | Runtime error | 18ms | 3104 KiB | ||||
10 | Runtime error | 18ms | 2916 KiB | ||||
11 | Runtime error | 17ms | 2952 KiB |