#include <bits/stdc++.h>
using namespace std;
int main() {
int t;
cin >> t;
int pontok[] = {0, 25, 18, 15, 12, 10, 8, 6, 4, 2, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0};
for(int o = 0; o < t; o++) {
int n;
cin >> n;
int dani = 0;
int ellenfel = 0;
for(int i = 0; i < n; i++) {
int helyezes;
cin >> helyezes;
dani += pontok[helyezes];
ellenfel += helyezes == 1 ? pontok[2] : pontok[1];
}
cout << (dani >= ellenfel ? "Champion" : "Practice harder") << endl;
}
return 0;
}
Subtask | Sum | Test | Verdict | Time | Memory | ||
---|---|---|---|---|---|---|---|
subtask1 | 0/0 | ||||||
1 | Accepted | 1ms | 320 KiB | ||||
subtask2 | 20/20 | ||||||
2 | Accepted | 3ms | 412 KiB | ||||
3 | Accepted | 3ms | 416 KiB | ||||
subtask3 | 20/20 | ||||||
4 | Accepted | 12ms | 320 KiB | ||||
5 | Accepted | 10ms | 320 KiB | ||||
6 | Accepted | 10ms | 408 KiB | ||||
7 | Accepted | 7ms | 412 KiB | ||||
subtask4 | 60/60 | ||||||
8 | Accepted | 12ms | 508 KiB | ||||
9 | Accepted | 12ms | 320 KiB | ||||
10 | Accepted | 12ms | 320 KiB | ||||
11 | Accepted | 7ms | 412 KiB |