104112024-04-01 21:23:13111Farmula 1cpp17Accepted 100/1006ms3324 KiB
#include <bits/stdc++.h>
using namespace std;

#define int long long

signed main(){
	ios::sync_with_stdio(false);
	cin.tie(nullptr);
	int T;
	cin>>T;
	while(T--){
		int N;
		cin>>N;
		int a[20]{25,18,15,12,10,8,6,4,2,1};
		int p=0;
		for(int i=0;i<N;i++){
			int x;
			cin>>x;
			p+=a[x-1];
			if(x>1){
				p-=25;
			}
			else{
				p-=18;
			}
		}
		cout<<(p>=0?"Champion":"Practice harder")<<'\n';
	}
	return 0;
}
SubtaskSumTestVerdictTimeMemory
subtask10/0
1Accepted3ms2076 KiB
subtask220/20
2Accepted3ms2288 KiB
3Accepted3ms2616 KiB
subtask320/20
4Accepted6ms2564 KiB
5Accepted6ms2688 KiB
6Accepted6ms2908 KiB
7Accepted4ms2992 KiB
subtask460/60
8Accepted6ms3036 KiB
9Accepted6ms3120 KiB
10Accepted6ms3324 KiB
11Accepted4ms3280 KiB