113332024-08-18 18:03:35matekimado11Farmula 1cpp17Wrong answer 0/1006ms632 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!=0)mp+=7;
        }
        if(p>=mp){cout<<"Champion";}
        else{cout<<"Practice harder";}
        cout<<endl;
    }
}
SubtaskSumTestVerdictTimeMemory
subtask10/0
1Wrong answer2ms356 KiB
subtask20/20
2Wrong answer4ms504 KiB
3Wrong answer4ms356 KiB
subtask30/20
4Wrong answer6ms632 KiB
5Wrong answer4ms556 KiB
6Wrong answer6ms504 KiB
7Wrong answer4ms356 KiB
subtask40/60
8Wrong answer4ms400 KiB
9Wrong answer4ms400 KiB
10Wrong answer4ms436 KiB
11Wrong answer4ms500 KiB