blob: 1ad088c75dd752fa89d89847510e2a57975aca7c (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
|
#include <stdio.h>
int main()
{
int t;
long p, q, k;
scanf("%d\n", &t);
while (t--) {
scanf("%ld %ld %ld\n", &p, &q, &k);
puts(((p + q) / k % 2) ? "COOK" : "CHEF");
}
return 0;
}
|