You are viewing a single comment's thread. Return to all comments →
lol
#include <cmath> #include <cstdio> #include <vector> #include <iostream> #include <algorithm> using namespace std; int main() { int x,y,z; int t; cin>>t; while(t--) { cin>>x>>y>>z; int a,b; a=x-z; b=y-z; if(a<0) a *=-1; if(b<0) b *=-1; if(a<b) cout<<"Cat A"<<endl; else a>b ? cout<<"Cat B"<<endl:cout<<"Mouse C"<<endl; } return 0; }
Seems like cookies are disabled on this browser, please enable them to open this website
Cats and a Mouse
You are viewing a single comment's thread. Return to all comments →
lol