Go: package main
import (
        "fmt"
)

func main() {
        var num int
        fmt.Scan(&num)

        for i := 0; i < num; i++ {
                s1 := 0
                s2 := 0
                s3 := 0
                var chk int = 0
                fmt.Scanf("%d %d %d", &s1, &s2, &s3)
                if s1 >= s2 {
                        if s1 > s3 {
                                chk = 1
                        } else {
                                chk = 3
                        }
                } else {
                        if s2 >= s3 {
                                chk = 2
                        } else {
                                chk = 3
                        }
                }

                if (chk == 1 && s1*s1 == s2*s2 + s3*s3) ||
                        (chk == 2 && s2*s2 == s3*s3 + s1*s1) ||
                        (chk == 3 && s3*s3 == s1*s1 + s2*s2) {
                        fmt.Printf("YES\n")
                } else {
                        fmt.Printf("NO\n")
                }
        }
}

Python: n = int(input())

for i in range(n):
    a,b,c = list(map(int, input().split()))
    M = max([a,b,c])
    result = False
    if a == M:
        result = (a * a == b * b + c * c)
    elif b == M:
        result = (b * b == a * a + c * c)
    elif c == M:
        result = (c * c == a * a + b * b)
    if result:
        print("YES")
    else:
        print("NO")

Python: N=int(input())
for i in range(N):
    a=list(map(int,input().split()))
    a.sort()
    if a[0]**2+a[1]**2==a[2]**2:
         print('YES')
    else:
         print('NO')

Python: N = int(input())
for i in range(N):
    a,b,c = map(int,input().split())
    if a*a + b*b == c*c or b*b+c*c == a*a or a*a+c*c == b*b:
        print("YES")
    else:
        print("NO")

Python: N = input()
a = []
answer_list = []

for i in range(N):
    a.append(map(int, input().strip().split()))

for j in range(len(a)):
    number_1 = a[j][0]
    number_2 = a[j][1]
    number_3 = a[j][2]

    number_1 = number_1 * 2
    number_2 = number_2 * 2
    number_3 = number_3 * 2

    if number_1 == number_2 + number_3:
        print("YES")
    if number_2 == number_3 + number_1:
        print("YES")
    if number_3 == number_1 + number_2:
        print("YES")

    else:
        print("NO")

Python: N =  int(input())

for i in range(N):
    tri = input()
    tri_list = tri.split()
    tri_list.sort()
    if int(tri_list[2]) ** 2 == int(tri_list[0]) ** 2 + int(tri_list[1]) ** 2 :
        print("YES")
    else:
        print("NO")

Python: n=int(input())

for i in range(n):
    s = input().rstrip().split(' ')
    s.sort()
    s0 = int(s[0])
    s1 = int(s[1])
    s2 = int(s[2])
    a = s0**2+s1**2
    if (a == s2**2) :
        print("Yes")
    else:
        print("No")

Python: import sys
n = int(input())
for i in range(n):
    ns = [x * x for x in map(int, input().split())]
    if ns[0] + ns[1] == ns[2] or ns[0] + ns[2] == ns[1] or ns[1] + ns[2] == ns[0]:
        print("YES")
    else:
        print("NO")

Python: N = int(raw_input())
for i in range(N):
  a,b,c = sorted(map(int, raw_input().split()))
  print (a**2 + b**2 == c**2 and 'YES') or 'NO'

Python: count=int(input())
for i in range(0, count):
    a = map(int, input().split(' '))
    a = [j**2 for j in a]
    a.sort()
    if (a[0] + a[1] == a[2]):
        print('YES')
    else:
        print('NO')

Python: N=int(input())
for i in range(N):
    x,y,z=map(int,input().split())
    if x**2==y**2+z**2:
        print('YES')
    elif y**2==x**2+z**2:
        print('YES')
    elif z**2==x**2+y**2:
        print('YES')
    else:
        print('NO')

Python: for _ in[0]*int(input()):
 a,b,c=sorted(map(int,input().split()))
 print(['NO','YES'][a*a+b*b==c*c])

Python: n=int(input())
for i in range(n):
    a,b,c=map(int,input().split())
    if a*a+b*b == c*c :
        print("YES")
    elif b*b+c*c == a*a :
        print("YES")
    elif c*c+a*a == b*b :
        print("YES")
    else :
        print("NO")

Python: N=int(input())
for n in range(N):
	sides = list(map(int,input().split()))
	sides.sort()
	if sides[-1]**2 == sides[-2]**2 + sides[-3]**2:
		print("YES")
	else:
		print("NO")

Python: number = int(input())

for i in range(number):
  tri = map(int, input().split(" "))
  if tri[0] > tri[1]:
    buf = tri[0]
    tri[0] = tri[1]
    tri[1] = buf
  if tri[1] > tri[2]:
    buf = tri[1]
    tri[1] = tri[2]
    tri[2] = buf
  if tri[0] * tri[0] + tri[1] * tri[1] == tri[2] * tri[2]:
    print("YES")
  else:
    print("NO")

Python: ans = []
for i in range(int(input())):
    a, b, c = map(int, input().split())
    lst = [a, b, c]
    lst.sort()
    if lst[2]**2 == lst[0]**2 + lst[1]**2:
        ans.append("YES")
    else:
        ans.append("NO")
for i in ans:
    print(i)

Python: N=int(input())
for i in range(N):
    a,b,c=map(int,input().split())
    if a>b:
        a,b=b,a
    if b>c:
        b,c=c,b
    if a>b:
        a,b=b,a
    if a*a+b*b==c*c:
        print("YES")
    else:
        print("NO")

Python: #!/usr/bin/env python
# -*- coding: utf-8 -*-

n = int(input())

for i in range(n):
    x = list(map(int, input().split()))
    x.sort()
    if x[0]**2 + x[1]**2 == x[2]**2:
        print('Yes')
    else:
        print('No')

Python: #volume0 0003
N = int(input())
for i in range(N):
    x , y , z= map(int,input().split())
    if x > y:
        min = x
        x = y
        y = min
    if y > z:
        mid = y
        y = z
        z = mid
    if x > y:
        min = x
        x = y
        y = min
    if z**2 == x**2 + y**2:
        print("YES")
    else:
        print("NO")

Python: N = int(input())
def check_right_triangle(l):
    ans = ""
    max_number = l.pop(l.index(max(l)))
    if((max_number**2) == (l[0]**2+l[1]**2)):
        return "YES"
    else:
        return "NO"
for i in range(N):
    length_of_three_side = list(map(int,input().split()))
    print(check_right_triangle(length_of_three_side ))

Python: data = []
for i in range(int(input())):
    data.append(sorted(list(map(int, input().split()))))
for d in data:
    if d[0]**2 + d[1]**2 == d[2]**2:
        print('YES')
    else:
        print('NO')

Python: #-*-coding:utf-8-*-

def get_input():
    for i in range(int(input())):
        yield "".join(input())

#####end of def get_input()#####

if __name__ == "__main__":
    array = list(get_input())
    
    for i in range(len(array)):        
        a,b,c = array[i].split()
        if int(a)^2 + int(b)^2 == int(c)^2:
            print("YES")
        elif int(c)^2 + int(a)^2 == int(b)^2:
            print("YES")
        elif int(b)^2 + int(c)^2 == int(a)^2:
            print("YES")
        else:
            print("NO")

Python: N = int(input())

for i in range(N):
    a,b,c = map(int,input().split())
    L = [a,b,c]

    m = L.pop(L.index(max(L)))
    d = L[0] ** 2 + L[1] ** 2

    if m ** 2 ==d:  
        print("YES")
    else:
        print("NO")

Python: deta_set_count = int(input())
for _ in range(deta_set_count):
    k = list(map(int, input().split()))
    if k[0]**2 + k[1]**2 == k[2]**2:
        print(True)
    else:
        print(False)

Python: n=int(input())
for i in range(n):
 a,b,c=[int(j) for j in input().split()]
 if a==b and b==c:
  print("YES")
 else:
  print("NO")

Python: N = int(input())
for i in range(N):
    a, b, c = map(int, input().split())
    if(a > c):
        a, c = c, a
    if(b > c):
        b, c = c, b
    if(c**2 == a**2 + b**2):
        print("YES")
    else:
        print("NO")

Python: times=int(input())
answers=[]
for i in range(times):
    hen=[]
    hen=input().split()
    for j in range(3):
        hen[j]=int(hen[j])
    for j in range(2):
        for k in range(2):
            if hen[j]>hen[j+1]:
                num=hen[j]
                hen[j]=hen[j+1]
                hen[j+1]=num
    if hen[0]*hen[0]+hen[1]*hen[1]==hen[2]*hen[2]:
        answers.append('Yes')
    else:
        answers.append('No')
for i in range(len(answers)):
    print(answers[i])