Go: package main

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

var sc = bufio.NewScanner(os.Stdin)

func main() {
	sc.Split(bufio.ScanWords)
	li := make([]int, 3)

	sc.Scan()
	N, _ := strconv.Atoi(sc.Text())

	for i := 0; i < N; i++ {
		for j := 0; j < 3; j++ {
			sc.Scan()
			x, _ := strconv.Atoi(sc.Text())
			li[j] = x
		}
		sort.Ints(li)

		switch li[2]*li[2] == li[1]*li[1]+li[0]*li[0] {
		case true:
			fmt.Println("YES")
		case false:
			fmt.Println("NO")
		default:
		}
	}

}

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()
    print(tri_list[i])
    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: N=int(input())
for i in range(N):
    x,y,z=sorted(map(int,input().split()))
    if x**2+y**2==z**2:
        print("YES")
    else:
        print("NO")

Python: import sys

list0 = []
for line in sys.stdin.readlines():
    list0.append(line)

for i in range(1, int(list0[0]) + 1):
    list2 = sorted(list0[i].strip("\n").split(" "))
    print("i: "+ str(i)),
    if int(list2[0]) * int(list2[0]) + int(list2[1]) * int(list2[1]) == int(list2[2]) * int(list2[2]):
        print("YES")
    else:
        print("NO")

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

Python: 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: [print("YES" if x[0] + x[1] == x[2] else "NO") for x in [sorted([x * x for x in [int(i) for i in input().split(" ")]]) for _ in range(int(input()))]]

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

for i in range(N):
    tri = input()
    tri_list.append(tri.split())
    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: for make in range(int(input())) :
    temp = [int(_) for _ in input().split()]
    if temp[0]**2 + temp[1] **2 == temp[2]**2 : print('YES')
    else : print('NO')

Python: import math
N = int(input())

i = 1
while i <= 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")
    i += 1

Python: n = int(input())
for i in range(n):
  l = [int(j) for j in input().split()]
  l.sort()
  print("YES" if l[0]**2 + l[1]**2 == l[2]**2 else "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: #! /usr/bin/env python3

noOfInputs = int(input())
for i in range(noOfInputs):
	numsInStr = input().split()
	nums = []
	for n in numsInStr:
		nums.append(int(n))

	largest = max(nums)	
	nums.remove(max(nums))
	#print(nums)

	if (largest**2 == sum([i**2 for i in nums])):
		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: 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: for i in range(int(input())):
    a,b,c = 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: var1 = int(input()) + 1
list3 = []
for i in range(1, var1):
    list3.append(input())
for m in range(0, var1-1):
    str1 = list3[m]
    list1 = str1.split(" ")
    list1 = list(map(int, list1))
    var2 = max(list1)
    list1.remove(max(list1))
    var2 = var2 * var2
    var3 = list1[0]*list1[0]
    var4 = list1[1]*list1[1]
    if var4 + var3 == var2:
        print("YES")
    else:
        print("NO")
    list1.clear()
    str1 = None

Python: N = int(input())

for i in range(N):
    a, b, c = map(int, input().split())
    list = [a, b, c]
    for j in range(2,0,-1):
        for k in range(j):
            if list[k]<list[k+1]:
                list[k], list[k+1] = list[k+1], list[k]
    if (list[0])**2 == (list[1])**2 + (list[2])**2 :
        print('YES')
    else:
        print('NO')

Python: def main():

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

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


main()

Python: import sys

n = int(input())
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):
    tri = list(map(int, input().split()))
    
    tri.sort()
    
    if tri[2]**2 == tri[0]**2 + tri[1]**2:
        print('YES')
    else:
        print('NO')

Python: n=int(input())
for i in range (n):
    l=list(map(int,input().split()))
    L=sorted(l)

    if (L[0])*(L[0])+(L[1])*(L[1])==(L[2])*(L[2]):
        print("YES")
        
    else:
        print("NO")

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

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

Python: # coding: utf-8
# Here your code !

n = int(input())
e = [[int(i) for i in input().split()] for i in range(n)] 
for i in e:
    a = max(i)
    i.remove(a)
    if a*a == i[0]*i[0]+ i[1]*i[1]:
        print("YES")
    else:
        print("NO")

Python: def ifTriangle(a, b, c):
    if (a**2) + (b**2) == c**2: print("YES")
    else: print("NO")

n=int(input())
for i in range(n):
    lines=list(map(int, input().split()))
    lines.sort()
    ifTriangle(lines[0], lines[1], lines[2])

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 x**2+z**2==y**2:
        print("YES")
    elif y**2+z**2==x**2:
        print("YES")
    else:
        print("NO")

Python: num = int(input())
for i in range (num):
    a=input().split()
    if a[0]==a[1] and a[1]==a[2]:
        print("YES")
    else:
        print("NO")

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

def is_right(a, b, c):
    a2 = a*a
    b2 = b*b
    c2 = c*c

    return a2==b2+c2 or b2==c2+a2 or c2==a2+b2

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

    for _ in range(N):
        a, b, c = map(int, input().split())

        result = is_right(a, b, c)
        print("YES" if result else "NO")

if __name__ == "__main__": main()

Python: N = int(input())
for i in range(N):
	line = input()
	l = [None]*3
	l[0] = int(line.split()[0])
	l[1] = int(line.split()[1])
	l[2] = int(line.split()[2])
	l.sort()
	if l[0]**2+l[1]**2==l[2]**2:
		print("YES")
	else:
		print("NO")

Python: for i in range(int(input())):
    a, b, c = sorted([int(i) for i in input().split()])
    print('YES' if a ** 2 + b ** 2 == c ** 2 else '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')