Chef & Cook
join my whatsapp group
#include <bits/stdc++.h>
using namespace std;
int main() {
// your code goes here
int t;
cin>>t;
while(t--){
int n;
cin>>n;
vector<int> v(n) ;
int x=0;
for(int i=n-1 ; i>=0 ;i-- ){
cin>>v[i];
if(v[i]%2==1)
x^=i;
}
if(x==0)
cout<<"Cook"<<endl;
else
cout<<"Chef"<<endl;
}
return 0;
}
Comments
Post a Comment