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')
Részfeladat | Összpont | Teszt | Verdikt | Idő | Memória | ||
---|---|---|---|---|---|---|---|
subtask1 | 0/0 | ||||||
1 | Elfogadva | 17ms | 3044 KiB | ||||
subtask2 | 20/20 | ||||||
2 | Elfogadva | 26ms | 3044 KiB | ||||
3 | Elfogadva | 26ms | 3044 KiB | ||||
subtask3 | 20/20 | ||||||
4 | Elfogadva | 57ms | 3164 KiB | ||||
5 | Elfogadva | 57ms | 3112 KiB | ||||
6 | Elfogadva | 57ms | 3220 KiB | ||||
7 | Elfogadva | 41ms | 3108 KiB | ||||
subtask4 | 60/60 | ||||||
8 | Elfogadva | 59ms | 3228 KiB | ||||
9 | Elfogadva | 59ms | 3044 KiB | ||||
10 | Elfogadva | 56ms | 3192 KiB | ||||
11 | Elfogadva | 41ms | 3044 KiB |