URI Online Judge Solution | 1013 The Greatest

Solution:
I have took help from net.And after taking a look I understood what to do actually.

Here for each test case I have to use this formula

After using MaiorAB that means in portugese and in english by google translating i have find it is maximum or larger or more in AB
So in Maior is in MaiorAB and in from the input C