jakaria_hossain

Codechef - Chef and serves

Oct 9th, 2018
150
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.29 KB | None | 0 0
  1. #include<bits/stdc++.h>
  2. using namespace std;
  3. int main()
  4. {
  5. int t;
  6. scanf("%d",&t);
  7. while(t--)
  8. {
  9. int p1,p2,k;
  10. scanf("%d %d %d",&p1,&p2,&k);
  11. p1=(p1+p2)/k;
  12. if(p1%2)printf("COOK\n");
  13. else printf("CHEF\n");
  14.  
  15. }
  16. return 0;
  17. }
Advertisement
Add Comment
Please, Sign In to add comment