Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <iostream>
- using namespace std;
- int main()
- {
- int T, c, t1, t2;
- cin >> T;
- for (int z=1; z<=T; z++)
- {
- cin >> c;
- int res=0;
- for (int i=0; i<c; i++)
- {
- cin >> t1 >> t2;
- res ^= ((t1+t2-2)%3);
- }
- cout << ((res!=0?"MasterChef":"Football")) << endl;
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment