Cats and a Mouse

  • + 1 comment

    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;
    }