ryanhallcs

CHEFBRO Solution

Sep 11th, 2011
170
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.30 KB | None | 0 0
  1. #include <iostream>
  2. using namespace std;
  3. int main()
  4. {
  5.     int T, c, t1, t2;
  6.     cin >> T;
  7.     for (int z=1; z<=T; z++)
  8.     {
  9.         cin >> c;
  10.         int res=0;
  11.         for (int i=0; i<c; i++)
  12.         {
  13.                 cin >> t1 >> t2;
  14.             res ^= ((t1+t2-2)%3);
  15.             }
  16.         cout << ((res!=0?"MasterChef":"Football")) << endl;
  17.     }
  18. }
Advertisement
Add Comment
Please, Sign In to add comment