#include <bits/stdc++.h>
using namespace std;
int main() {
ios::sync_with_stdio(0);
cin.tie(0);
const vector<int> pontok = {-1, 25,18,15,12,10,8,6,4,2,1,0,0,0,0,0,0,0,0,0,0};
int n; cin >> n;
for (int i = 0; i < n; i++)
{
int futam; cin >> futam;
int Dani = 0, ellenfel = 0;
for (int i = 0; i < futam; i++)
{
int helyezes; cin >> helyezes;
Dani += pontok[helyezes];
if (helyezes == 1)
{
ellenfel += pontok[helyezes+1];
}
else
{
ellenfel += pontok[1];
}
}
if (Dani >= ellenfel)
{
cout << "Champion" << endl;
}
else
{
cout << "Practice harder" << endl;
}
}
return 0;
}
Subtask | Sum | Test | Verdict | Time | Memory | ||
---|---|---|---|---|---|---|---|
subtask1 | 0/0 | ||||||
1 | Accepted | 1ms | 320 KiB | ||||
subtask2 | 20/20 | ||||||
2 | Accepted | 2ms | 320 KiB | ||||
3 | Accepted | 3ms | 432 KiB | ||||
subtask3 | 20/20 | ||||||
4 | Accepted | 6ms | 428 KiB | ||||
5 | Accepted | 6ms | 320 KiB | ||||
6 | Accepted | 6ms | 320 KiB | ||||
7 | Accepted | 4ms | 320 KiB | ||||
subtask4 | 60/60 | ||||||
8 | Accepted | 6ms | 320 KiB | ||||
9 | Accepted | 6ms | 436 KiB | ||||
10 | Accepted | 6ms | 444 KiB | ||||
11 | Accepted | 4ms | 320 KiB |