• + 0 comments

    Here is the solution for C#

    int res = Comparer.Default.Compare(Math.Abs(x-z),Math.Abs(y-z));
    return res < 0 ? "Cat A" : res > 0 ? "Cat B" : "Mouse C";