Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include<bits/stdc++.h>
- using namespace std;
- int main()
- {
- int t;
- scanf("%d",&t);
- while(t--)
- {
- int p1,p2,k;
- scanf("%d %d %d",&p1,&p2,&k);
- p1=(p1+p2)/k;
- if(p1%2)printf("COOK\n");
- else printf("CHEF\n");
- }
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment