Beakjoon&프로그래머스/파이썬
[백준/파이썬] 26509번 Triangle
현장
2023. 10. 18. 18:26
-Code
for _ in range(int(input())):
tri1 = sorted(list(map(int, input().split())))
tri2 = sorted(list(map(int, input().split())))
res = "NO"
if tri1 == tri2 and tri1[0] ** 2 + tri1[1] ** 2 == tri1[2] ** 2:
res = "YES"
print(res)