Given A, B, and C as the sides of a triangle, find whether the triangle is *scalene*.

Note:
A triangle is said to be *scalene* if all three sides of the triangle are distinct.
It is guaranteed that the sides represent a valid triangle.

------ Input Format ------ 

- The first line of input will contain a single integer T, denoting the number of test cases.
- Each test case consists of three space-separated integers A, B, and C — the length of the three sides of the triangle.

------ Output Format ------ 

For each test case, output on a new line, YES, if the triangle is *scalene*, and NO otherwise.

You may print each character of the string in uppercase or lowercase. For example, YES, yes, Yes, and yEs are all considered identical.

------ Constraints ------ 

$1 ≤ T ≤ 100$
$1 ≤ A ≤B ≤C ≤ 10$
$C < (A+B)$

----- Sample Input 1 ------ 
4
2 3 4
1 2 2
2 2 2
3 5 6

----- Sample Output 1 ------ 
YES
NO
NO
YES
----- explanation 1 ------ 
Test case $1$: The side lengths are $2, 3, $ and $4$. Since no two side lengths are equal, the triangle is scalene.

Test case $2$: The side lengths are $1, 2, $ and $2$. The sides $B$ and $C$ have the same length. Thus, the triangle is not scalene.

Test case $3$: The side lengths are $2, 2, $ and $2$. The sides $A, B,$ and $C$ have the same length. Thus, the triangle is not scalene.

Test case $4$: The side lengths are $3, 5, $ and $6$. Since no two side lengths are equal, the triangle is scalene.

Difficulty: EASY
Tags: Mathematics

Starter code:

Solutions:
t = int(input())
for i in range(t):
	(n, m, p) = map(int, input().split())
	if n != m != p:
		print('YES')
	else:
		print('NO')


t = int(input())
for i in range(t):
	(a, b, c) = map(int, input().split())
	if a == b or a == c or b == c:
		print('NO')
	else:
		print('YES')


t = int(input())
for i in range(t):
	sides = input().split()
	a = int(sides[0])
	b = int(sides[1])
	c = int(sides[2])
	if a != b and b != c:
		print('YES')
	else:
		print('NO')


t = int(input())
for i in range(t):
	(x, y, z) = map(int, input().split())
	if x != y and y != z:
		print('YES')
	else:
		print('NO')


T = int(input())
for i in range(T):
	(x, y, z) = input().split()
	A = int(x)
	B = int(y)
	C = int(z)
	if A != B and A != C and (B != C):
		print('YES')
	else:
		print('NO')


t = int(input())
for _ in range(t):
	(a, b, c) = map(int, input().split())
	if a != b != c:
		print('YES')
	else:
		print('NO')


t = int(input())
for i in range(t):
	(A, B, C) = map(int, input().split())
	if A == B or B == C or C == A:
		print('NO')
	else:
		print('YES')


for i in range(int(input())):
	(a, b, c) = map(int, input().split())
	if a != b and a != c and (b != c):
		print('YES')
	else:
		print('NO')


n = int(input())
for I in range(n):
	(a, b, c) = map(int, input().split())
	if a != b and b != c and (c != a):
		print('YES')
	else:
		print('NO')


n = int(input())
for i in range(0, n):
	(x, y, z) = map(int, input().split(' '))
	if x != y != z:
		print('YES')
	else:
		print('NO')


T = int(input())
for i in range(T):
	(A, B, C) = map(int, input().split())
	if A != B and A != C and (B != C):
		print('YES')
	else:
		print('NO')


t = int(input())
for i in range(t):
	l = list(map(int, input().split()))
	if l[0] != l[1] and l[1] != l[2]:
		if l[0] + l[1] > l[2] and l[1] + l[2] > l[0] and (l[2] + l[0] > l[1]):
			print('YES')
	else:
		print('NO')


t = int(input())
while t != 0:
	(a, b, c) = map(int, input().split())
	if a == b or b == c or c == a:
		print('NO')
	else:
		print('YES')
	t = t - 1


t = int(input())
for i in range(t):
	(X, Y, Z) = map(int, input().split())
	if X != Y != Z:
		print('YES')
	else:
		print('NO')


t = int(input())
while t:
	(a, b, c) = map(int, input().split())
	print('YES' if a is not b and b is not c and (c is not a) else 'NO')
	t -= 1


n = int(input())
for j in range(n):
	(x, y, z) = map(int, input().split())
	if x != y and x != z:
		if y != z:
			print('YES')
		else:
			print('NO')
	else:
		print('NO')


n = int(input())
for i in range(n):
	(j, k, l) = map(int, input().split())
	if j != k != l:
		print('YES')
	else:
		print('NO')


n = int(input())
for i in range(n):
	(a, b, c) = list(map(int, input().split()))
	x = [a, b, c]
	if len(set(x)) < 3:
		print('NO')
	else:
		print('YES')


n = int(input())
while n > 0:
	count = 0
	(a, b, c) = map(int, input().split())
	if a == b or b == c or c == a:
		print('NO')
	else:
		print('YES')
	n -= 1


def scalene(A, B, C):
	if A != B != C:
		return 'YES'
	else:
		return 'NO'
T = int(input())
for i in range(T):
	(A, B, C) = map(int, input().split())
	print(scalene(A, B, C))