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(1,n+1):
    x, y, z=map(int,input().split())
    if x*x==y*y+z*z or y*y==x*x+z*z or z*z==x*x+y*y:
        print("YES")
    else:
        print("NO")
        
    i =i+1

Python: n=int(input())
for i in range(n):
	x=list(map(int,input().split()))
	a,b,c=sorted(x)
	if a**2+b**2==c**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())
i = 0
while True:
    if n == i:
        break
    else:
        i += 1
    a, b, c = map(int, input().split())
    if c**2 == a**2+b**2:
        print("YES")
    else:
        print("NO")

Python: # coding: utf-8
# Your code here!
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 c * c - a * a - b * b == 0:
      print("YES")
   else:
      print("NO")

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

Python: def solve():
    n = int(input())
    for _ in range(n):
        a, b, c = sorted([int(i) for i in input().split()])
        if a**2 + b**2 == c**2:
            print("YES")
        else:
            print("NO")

solve()

Python: import string
import sys
import math

#??????????????\????????????ip?????\??????
ip = sys.stdin.readlines()
ip_list = {}

#?????????????????§?????????
for i in range(len(ip)):
    ip_list[i] = ip[i].strip("\n").split()

for i in range(len(ip)):
    if len(ip_list[i]) == 1:
        print("YES")
    else:
        if   int(ip_list[i][0]) != int(ip_list[i][1]):
            print("NO")
        elif int(ip_list[i][0]) != int(ip_list[i][2]):
            print("NO")
        else:
            print("YES")

Python: for i in range(int(input())):
    a = sorted(map(int,input().split()),reverse = True)
    if a[0]**2 == a[1]**2 + a[2]**2:
        print("YES")
    else:
        print("NO")

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

Python: import sys
input()
for a,b,c in map(lambda x:sorted(map(int,x.split())),sys.stdin):
 print(['NO','YES'][a*a+b*b==c*c])

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

Python: def isRightTriangle(lineList):
    if lineList[0]**2 + lineList[1]**2 == lineList[2]**2:
        return True
    else:
        return False
if __name__ == '__main__':
    n = (int)(input())
    for _ in range(0,n):
        tmp = list(map(int,input().split()))
        tmp.sort()
        print("YES" if isRightTriangle(tmp) else "NO")

Python: # coding:utf-8

def main():
    N = int(input().rstrip())

    for i in range(N):
        ls = list(map(int, input().split(' ')))
        ls.sort()

        if(ls[0]**2 + ls[1]**2 == ls[2]**2):
            print('YES')
        else:
            print('NO')
            
if __name__ == "__main__":
    main()

Python: n=int(input())
for i in range(n):
    a,b,c=map(int,input().split())
    x=[a,b,c]
    x=sorted(x)
    if x[2]**2 == x[0]**2 + x[1]**2:
        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: tri_list = []
N =  int(input())

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

Python: def main():
    n = int(input())
    for i in range(n):
        a, b, c=(int(x) for x in input().split())
        if a+b<=c or a+c<=b or b+c<=a:
            print("YES")
        else:
            print("NO")

main()

Python: n = int(input())
for _ in range(n):
    num = sorted(map(int, input().split()))
    if num[0]**2 + num[1]**2 == num[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**2+b**2)==c**2 or (a**2+c**2)==b**2 or (c**2+b**2)==a**2:
          print('YES')
     else:
          print('NO')

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

Python: n=int(input())
for i in range(n):
	x,y,z=map(int,input().split())
	A=[x,y,z]
	A.sort(reverse=True)
	if A[0]**2==A[1]**2+A[2]**2:
		print("Yes")
	else:
		print("No")

Python: import sys

for line in sys.stdin:
    try:
        a,b,c = [int(x) for x in line.split()]
        if (a**2+b**2) == c**2:
            print('YES')
        else:
            print('NO')
    except(ValueError):
        continue

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

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

Python: n = int(input())

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

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

Python: def main():
    def inputs():
        li = []
        count = 0
        try:
            N = input()
            while count < int(N):
                li.append(input())
                count += 1
        except EOFError:
            return li
        return li

    li = inputs()
    for x in li:
        tmp = x.split(" ")
        tmp = sorted(tmp)
        a,b,c = int(tmp[0]),int(tmp[1]),int(tmp[2])
        if c**2 == a**2 + b**2:
            print("YES")
        else:
            print("NO")
    return None

main()