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, fantom += 25, 18
elif szam<11:
daniel, fantom += h[i-1], 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 | 3044 KiB | ||||
subtask2 | 0/20 | ||||||
2 | Runtime error | 17ms | 2936 KiB | ||||
3 | Runtime error | 17ms | 2936 KiB | ||||
subtask3 | 0/20 | ||||||
4 | Runtime error | 17ms | 2960 KiB | ||||
5 | Runtime error | 17ms | 3172 KiB | ||||
6 | Runtime error | 17ms | 3044 KiB | ||||
7 | Runtime error | 17ms | 3064 KiB | ||||
subtask4 | 0/60 | ||||||
8 | Runtime error | 17ms | 3044 KiB | ||||
9 | Runtime error | 17ms | 3156 KiB | ||||
10 | Runtime error | 17ms | 2936 KiB | ||||
11 | Runtime error | 17ms | 3104 KiB |