Go: package main

import (
	"bufio"
	"fmt"
	"os"
	"strconv"
	"strings"
)

func main() {
	n, _ := strconv.Atoi(strScan())
	scanner := bufio.NewScanner(os.Stdin)
	for i := 0; i < n; i++ {
		scanner.Scan()
		strArr := strings.Fields(scanner.Text())
		castNumArr := StringToInt(strArr)
		fmt.Println(checkTriangle(castNumArr))
	}
}

func checkTriangle(i []int) string {
	if checkSt(i[0], i[1], i[2]) || checkSt(i[1], i[2], i[0]) || checkSt(i[2], i[0], i[1]) {
		return "YES"
	} else {
		return "NO"
	}
}

func Sq(x int) int {
	return x * x
}

func checkSt(a, b, c int) bool {
	return (Sq(a) + Sq(b)) == Sq(c)

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

Python: cnt = int(input())
values = []
for i in range(cnt):
    values.append([int(x) for x in input().split()])

for x, y, z in values:
    if int(z) ** 2 == int(x) ** 2 + int(y) ** 2:
        print('YES')
    else:
        print('NO')

Python: n=int(input())
for i in range(n):
    a,b,c = input().split()
    x = int(a)
    y = int(b)
    z = int(c)
    p = [x,y,z]
    p.sort()
    if pow(p[0],2) + pow(p[1],2) == pow(p[2],2):
        print('YES')
    else:
        print('NO')

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

Python: # coding: utf-8
# Here your code !
N = int(input())

for i in range(N):
    a,b,c = map(int, input().split())
    flg = 0
    if a*a + b*b == c*c:
        flg = 1
    if c*c + a*a == b*b:
        flg = 1
    if b*b + c*c == a*a:
        flg = 1
    if flg == 1:
        print('YES')
    else:
        print('NO')

Python: n = int(input())
for i in range(n):
    a, b, c  = map(int, input().split())
    d = 2
    e = 1/2
    
    if (a**d+b**d)**e == c or (a**d+c**d)**e == b or (c**d+b**d)**e == 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: for i in range(int(input())):
    a=map(int,raw_input().split())
    if a[0]**2+a[1]**2==a[2]**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")
	else:
		print("NO")

Python: n=int(input())
for i in range(n):
	A=[int(j) for j in input().split()]
	if(A[0]**2+A[1]**2==A[2]**2):
		print("YES")
	else:
		print("NO")

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

Python: a=[print(s) for s in map(lambda x:x[0]+x[1]==x[2] and 'YES' or 'NO', [sorted(int(x)**2 for x in raw_input().split(' ')) for i in range(int(raw_input()))])]

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

Python: import sys
for i in sys.stdin:
    try:
        sidelen = [int(j) for j in i.split(" ")]
        sidelen.sort(reverse=True)
        if(sidelen[0]**2 == sidelen[1]**2 + sidelen[2]**2):
            print("YES")
        else:
            print("NO")
    except:
        continue

Python: s=int(input())
jon=[]
while True:
    try:
        jon.append(input())
    except:
        break
for i in jon:
    pon=sorted(list(map(int,i.split())),reverse=True)
    if pon[0]**2==pon[1]**2+pon[2]**2:
        print('YES')
    else:
        print('NO')

Python: import sys

n = int(sys.stdin.readline())
l = sys.stdin.readlines()
s = ""
for i in l:
  x, y, z = sorted(map(lambda x:x*x,map(int, i.split())))
  if x + y == z:
      s += "YES\n"
  else:
      s += "NO\n"

print(s,end="")

Python: N=int(input())


for i in range(N):
    a,b,c=map(int,input().split())
    A=max(a,max(b,c))
    B=min(a,min(b,c))
    C=a+b+c-A-B
    
    if B**2+C**2==A**2:
        print('YES')
    else:
        print('NO')

Python: a=int(input())
for i in range(a):
    x,y,z=[int(i) for i in input().split() ]
    if (x*x==z*z+y*y)or(y*y==z*z+x*x)or(z*z==x*x+y*y):
        print("YES")
    else:
        print("NO")

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

Python: import sys

n = int(sys.stdin.readline().strip())
for i in range(n):
    line = sys.stdin.readline()
    lengths = sorted(list(map(int, line.strip().split())))
    if lengths[0]**2 + lengths[1]**2 == lengths[2]**2:
        print('YES')
    else:
        print('NO')

Python: n=int(input())
for j in range(n):
    l =input().split()
    a=[int(l[i]) for i in range(3)]
    a=sorted(a)
    if a[0]**2+a[1]**2==a[2]**2:
        print("YES")
    else:
        print("NO")

Python: def main():
    n = int(input())
    while True:
        try:
            li = [input() for _ in range(n)]
            li = sorted(li)
            for x in li:
                tmp = x.split(" ")
                for i in range(len(tmp)):
                    tmp[i] = int(tmp[i])
                tmp = sorted(tmp)
                a,b,c = tmp[0],tmp[1],tmp[2]
                if (a**2 + b**2) == c**2:
                    print("YES")
                else:
                    print("NO")
        except EOFError:
            break
    return None

if __name__ == '__main__':
    main()

Python: n=int(input())
for i in range(n):
    p=list(map(int,input().split(" ")))
    p.sort()
    a=p[0]
    b=p[1]
    c=p[2]
    if pow(a,2) + pow(b,2) == pow(c,2):
        print('YES')
    else:
        print('NO')

Python: N = input()

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

Python: import sys
r = []
n = int(input())
l = sys.stdin.readlines()
for i in l:
  x, y, z = sorted(map(lambda x:x*x,map(int, i.split())))
  if x + y == z:
      print("YES")
  else:
      print("NO")

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

Python: import sys

for line in sys.stdin:
    try:
        array = [int(x) for x in line.split()]
        array.sort()
        if array[2]**2 == (array[0]**2+array[1]**2):
            print('YES')
        else:
            print('NO')
    except(ValueError):
        continue

Python: n=int(input())

while n:
    n-=1
    lis=list(map(int,input().split()))
    for i in range(3):
        for j in range(i+1,3):
            if lis[i]<lis[j]:
                a=lis[i]
                lis[i]=lis[j]
                lis[j]=a

    c,a,b=lis
    if c**2==a**2+b**2:
        print("YES")

    else:
        print("NO")

Python: num=int(input())

for i in range(num):
		a,b,c=input().split(" ")
		if(a==b==c):
			print("YES")
		else:	
			print("NO")

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

Python: [print("YES" if i[0] + i[1] == i[2] else "NO") for _ in range(int(input())) for i in [sorted([int(x) ** 2 for x in input().split()])]]