You are viewing a single comment's thread. Return to all comments →
python 3
for p in range(int(input())): x,y,z = map(int,input().split()) print("Cat A" if abs(z - x) < abs(z - y) else "Cat B" if abs(z - x) > abs(z - y) else "Mouse C")
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 →
python 3