Go: package main

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

var sc = bufio.NewScanner(os.Stdin)

func read() string {
	sc.Scan()
	return sc.Text()
}

func main() {
	// sc.Split(bufio.ScanLines)
	sc.Split(bufio.ScanWords)
	n, _ := strconv.Atoi(read())
	s := make([]int, 3)
	for i := 0; i < n; i++ {
		s[0], _ = strconv.Atoi(read())
		s[1], _ = strconv.Atoi(read())
		s[2], _ = strconv.Atoi(read())
		sort.Sort(sort.IntSlice(s))
		if (s[2] * s[2]) == ((s[0] * s[0]) + (s[1] * s[1])) {
			fmt.Println("YES")
		} else {
			fmt.Println("NO")
		}
	}
}

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 c**2-a**2-b**2==0:
        print("YES")
    else:
        print("NO")

Python: while True:
	try:
		a,b,c = sorted(map(int, input().split()))
	except:
		exit()

	if c**2 == a**2 + b**2:
		print(YES)
	else:
		print(NO)

Python: for i in range(int(input())):
    tri = [int(i) for i in input().split(' ')]
    tri.sort()
    if tri[0]**2 + tri[1]**2 == tri[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 (b**2 == a**2 + c**2) or (c**2 == a**2 + b**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[2] ** 2 == a[0] ** 2 + a[1] ** 2:
        print("YES")
    else:
        print("NO")

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

    li = inputs(input())
    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

if __name__ == '__main__':
    main()

Python: def triangle(dataset):
    a, b, c = dataset
    if a*a + b*b == c*c:
        return 1
    return 0

N = int(input())
for _ in range(N):
    dataset = sorted(map(int, input().split()))
    flag = triangle(dataset)
    print(["NO", "YES"][flag])

Python: for _ in range(int(input())):
    e = list(map(int, input().split()))
    print("YES" if max(e) ** 2 * 2 == sum(i ** 2 for i in e) else "NO")

Python: import sys

n = int(sys.stdin.readline())
for _ in range(n):
    a, b, c = sorted(list(map(int, sys.stdin.readline().split())))
    print('YES' if a * a + b * b == c * c else 'NO')

Python: if __name__ == "__main__":
    line = input()
    a = int(line.split(" ")[0])
    b = int(line.split(" ")[1])
    c = int(line.split(" ")[2])
    if (a*a+b*b == c*c):
        print("YES")
    else:
        print("NO")

Python: tri_list = []
N =  int(input())

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

Python: import math as m
N=int(input())
for i in range(N):
    a,b,c=map(int,input().split())
    A = min(a,min(b,c))
    C = max(a,max(b,c))
    B = a+b+c-A-C
    r=m.sqrt(A**2+B**2)
    if C == r:
        print("YES")
    else:
        print("NO")

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

Python: n = int(input())

for i in range(n):
    hen = input().split()
    hen1, hen2, hen3 = map(int, hen)
    if hen1 == hen2 == hen3:
        print('YES')
    else:
        print('NO')

Python: def main():

    data_count = int(input())
    data = [tuple(map(int, input().split())) for i in range(data_count)]

    for item in data:
        print('YES') if item[0]**2 + item[1]**2 == item[2]**2 else print('NO')


main()

Python: import sys
i=0
N=int(input())
while i<N:
        a,b,c= map(int, input().split())
        a2=a*a
        b2=b*b
        c2=c*c
        if(a2==b2+c2 or b2==a2+c2 or c2==b2+a2):
            print('YES')
        else:
            print('NO')
        i=i+1

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

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

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(1,len(ip)):
    for j in range(3):
        #?????????????????????
        for t in range(3):
            for k in range(3):
                if int(ip_list[i][t]) > int(ip_list[i][k]):
                    tmp = ip_list[i][t]
                    ip_list[i][t] = ip_list[i][k]
                    ip_list[i][k] = tmp  
                    
for i in range(1,4):   
    if int(ip_list[i][0])**2 == int(ip_list[i][1])**2 + int(ip_list[i][2])**2:
        print("YES")
    else:
        print("NO")

Python: n = int(input())
for i in range(n):
    a = list(map(int, input().split()))
    m = max(a)
    b = sum([i**2 for i in a if i != m])
    if (m**2 == b):
        print("YES")
    else:
        print("NO")

Python: #coding:utf-8

i = input()
q = []
for n in range(i):
    l = map(int, raw_input(). split())
    a = min(l)
    l.remove(min(l))
    b = min(l)
    c = max(l)
    if a ** 2 + b ** 2 == c ** 2:
        q.append("YES")
    else:
        q.append("NO")

for s in xrange(len(q)):
    print(q[0])
    q.pop(0)

Python: n = int(input())
array = [[int(i) for i in input().split()] for i in range(n)]
for i in range(n):
    if array[i][0]**2+array[i][1]**2 == array[i][2]**2:
        print("Yes")
    elif array[i][0]**2+array[i][2]**2 == array[i][1]**2:
        print("Yes")
    elif array[i][1]**2+array[i][2]**2 == array[i][0]**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:
        print("YES")
    elif b*b==a*a+c*c:
        print("YES")
    elif c*c==a*a+b*b:
        print("YES")
    else:
        print("NO")

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

main()

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")