Go: package main
import (
    "fmt"
    "os"
    "bufio"
    "strconv"
    "sort"
)
 
var sc = bufio.NewScanner(os.Stdin)
var out = bufio.NewWriter(os.Stdout)
 
func main(){
    sc.Split(bufio.ScanWords)
    defer out.Flush()
    n := nextInt()
    for i:=0; i<n; i++{
        data := nextInts(3)
        sort.Ints(data)
        if data[0]*data[0]+data[1]*data[1] == data[2]*data[2]{
            fmt.Fprintln(out, "YES")
        }else{
            fmt.Fprintln(out, "NO")
        }
    }
}
 
func next() string{
    sc.Scan()
    return sc.Text()
}
 
func nextInt() int{
    a, _ := strconv.Atoi(next())
    return a
}
 
func nextInts(n int) []int{
    a := make([]int, n)
    for i:=0; i<n; i++{
        a[i] = nextInt()
    }
    return a
}

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

Python: import sys

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

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

Python: s = int(input())

for x in range(s):
    r = sorted(list(map(int, input().split())))
    if r[2] ** 2 == r[0] ** 2 + r[1] ** 2:
        print('YES')
    else:
        print('NO')

Python: #coding:UTF-8
def Rec(N,List):
    for i in range(N):
        a=int(List[i].split(" ")[0])
        b=int(List[i].split(" ")[1])
        c=int(List[i].split(" ")[2])
        if a*a+b*b==c*c or a*a+c*c==b*b or b*b+c*c==a*a:
            print("YES")
        else:
            print("NO")

if __name__=="__main__":
    List=[]
    N=int(input())
    for i in range(N):
        List.append(input())
    Rec(N,List)

Python: times = int(input())

for i in range(0, times):
	edge = input().split(" ")
	edge.sort()
	if pow(int(edge[0]), 2) + pow(int(edge[1]), 2) == pow(int(edge[2]), 2):
		print("YES")
	else:
		print("NO")