11335 | 2024-08-18 20:42:54 | matekimado11 | Farmula 1 | cpp17 | Accepted 100/100 | 16ms | 680 KiB |
#include<iostream>
using namespace std;
int main()
{
int t;
cin>>t;
for(int i=0;i<t;i++)
{
int n,p=0,mp=0;
cin>>n;
int k[20]={25,18,15,12,10,8,6,4,2,1,0,0,0,0,0,0,0,0,0,0};
for(int j=0;j<n;j++)
{
int a;
cin>>a;
p+=k[a-1];
mp+=18;
if(a!=1)mp+=7;
}
if(p>=mp){cout<<"Champion";}
else{cout<<"Practice harder";}
cout<<endl;
}
}
Subtask | Sum | Test | Verdict | Time | Memory | ||
---|---|---|---|---|---|---|---|
subtask1 | 0/0 | ||||||
1 | Accepted | 2ms | 356 KiB | ||||
subtask2 | 20/20 | ||||||
2 | Accepted | 6ms | 356 KiB | ||||
3 | Accepted | 6ms | 356 KiB | ||||
subtask3 | 20/20 | ||||||
4 | Accepted | 14ms | 680 KiB | ||||
5 | Accepted | 14ms | 488 KiB | ||||
6 | Accepted | 14ms | 472 KiB | ||||
7 | Accepted | 9ms | 504 KiB | ||||
subtask4 | 60/60 | ||||||
8 | Accepted | 14ms | 524 KiB | ||||
9 | Accepted | 16ms | 484 KiB | ||||
10 | Accepted | 14ms | 504 KiB | ||||
11 | Accepted | 10ms | 356 KiB |