-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)
'Beakjoon&프로그래머스 > 파이썬' 카테고리의 다른 글
[백준/파이썬] 14726번 신용카드 판별 (0) | 2023.10.20 |
---|---|
[백준/파이썬] 4459번 Always Follow the Rules in Zombieland (0) | 2023.10.19 |
[백준/파이썬] 7240번 Rogutės (0) | 2023.10.17 |
[백준/파이썬] 30156번 Malvika is peculiar about color of balloons (1) | 2023.10.16 |
[백준/파이썬] 23971번 ZOAC 4 (0) | 2023.10.15 |