• + 0 comments

    python3

    def catAndMouse(x, y, z):
        return "Mouse C" if abs(z-x) == abs(z-y) else f"Cat {'A' if abs(z-x)<abs(z-y) else 'B'}"