117832024-11-10 18:00:0542thebestestFarmula 1cpp17Accepted 100/10013ms508 KiB
#include <bits/stdc++.h>
using namespace std;

int main() {
	int T, N;
	map<int, int> pontok{{1, 25}, {2, 18}, {3, 15}, {4, 12}, {5, 10}, {6, 8}, {7, 6}, {8, 4}, {9, 2}, {10, 1}};
	cin >> T;
	for(int i = 0; i < T; i++) {
		cin >> N;
		int D = 0, E = 0, h;
		for(int j = 0; j < N; j++) {
			cin >> h;
			D += pontok[h];
			if (h != 1) {
				E += 25;
			} else {
				E += 18;
			}
		}
		if (D >= E) {
			cout << "Champion";
		} else {
			cout << "Practice harder";
		} cout << endl;
	} 
}
SubtaskSumTestVerdictTimeMemory
subtask10/0
1Accepted1ms320 KiB
subtask220/20
2Accepted3ms320 KiB
3Accepted3ms320 KiB
subtask320/20
4Accepted12ms320 KiB
5Accepted12ms416 KiB
6Accepted12ms420 KiB
7Accepted7ms320 KiB
subtask460/60
8Accepted13ms508 KiB
9Accepted13ms320 KiB
10Accepted13ms320 KiB
11Accepted8ms508 KiB