Help me in solving SCALENE problem

My issue

what is mistake in my code

My code

# cook your dish here
T=int(input())
for _ in range(T):
    A,B,C=map(int,input().split())
    if (A!=C and B!=C and C!=A):
        print("YES")
    else:
        print("NO")
    

Learning course: Basic Math using Python
Problem Link: Practice Problem in - CodeChef

Hi @dumpalamounika. I think you didn’t notice the constraints of the question.
image
c<(a+b)
And to write a simpler code to make sure one of the 3 sides is smaller than sum of the other 2, you can do it like this.

for _ in range(int(input())):
    l = list(map(int,input().split()))
    l.sort()
    a,b,c = l
    if a!=b and b!=c and c!=a and c<(a+b):
        print("YES")
    else:
        print("NO")

sorting makes the list in descending order, that makes the c always the bigger side.