Problem 58

2 comments on “Problem 58”


  • Shreyash

    #include
    using namespace std;
    int catandmouse(int x,int y,int z){
    x = (z-x);
    y = (z-y);
    if(x>y){
    cout<<"CAT B"<x){
    cout<<"CAT A"<<endl;
    }
    else{
    cout<<"MOUSE C"<>q;
    while(q–){
    int x,y,z;
    cin>>x>>y>>z;
    catandmouse(x,y,z);
    }
    return 0;
    }