104102024-04-01 21:22:41111Farmula 1cpp17Wrong answer 0/1006ms3836 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
1Wrong answer3ms1892 KiB
subtask20/20
2Wrong answer3ms2092 KiB
3Wrong answer3ms2328 KiB
subtask30/20
4Wrong answer6ms2564 KiB
5Wrong answer6ms2908 KiB
6Wrong answer6ms3096 KiB
7Wrong answer4ms3184 KiB
subtask40/60
8Wrong answer6ms3276 KiB
9Wrong answer6ms3380 KiB
10Wrong answer6ms3604 KiB
11Wrong answer4ms3836 KiB