Help me in solving MAXTHREE problem

My issue

t = int(input())
for i in range(t):
a, b, c = map(int, input().split())
print(max(a, b, c))

My code

# cook your dish here
t = int(input())
for i in range(t):
    a, b, c = map(int, input().split())
    print(max(a, b, c))

Problem Link: Maximum of Three Numbers Practice Coding Problem - CodeChef

here ,
the max function will only give you the max between the 2 numbers for finding three number do as
max(a,max(b,c));
it will first find the max of b n c and then with a leaving with the max of 3 numbers