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: deta_set_count = int(input())
for _ in range(deta_set_count):
    k = list(map(int, input().split()))
    if k[0]**2 + k[1]**2 == k[2]:
        print(True)
    else:
        print(False)

Python: T = int(input())
for tc in range(0,T):
  a = sorted(map(int, 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):
	a=map(int,input().split())
	a.sort()
	if a[0]**2+a[1]**2==a[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>B>=C:
        if A**2==B**2+C**2:
            print("YES")
        else:
            print("NO")
    elif A>C>=B:
            if A**2==C**2+B**2:
                print("YES")
            else:
                print("NO")
    elif B>A>=C:
        if B**2==A**2+C**2:
            print("YES")
        else:
            print("NO")
    elif B>C>=A:
        if B**2==A**2+C**2:
            print("YES")
        else:
            print("NO")
    elif C>A>=B:
        if C**2==A**2+B**2:
            print("YES")
        else:
            print("NO")
    else:
        if C**2==B**2+A**2:
            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: a, b, c = map(int, input().split())
if a**2 + b**2 == c**2:
    print('YES')
else:
    print('NO')

Python: import sys

n = input()
for i in sys.stdin:
    a, b, c = sorted(list(map(int, i.split())))
    print("yes" if a*a+b*b == c*c else "no")

Python: x=int(input())
list=[]
for i in range(x):
    a,b,c=input().split()
    list.append((int(a),int(b),int(c)))
    a=int(a)
    b=int(b)
    c=int(c)
    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: def main():
    n = int(input())
    if n <= 0:
        return None
    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")
    return None

if __name__ == '__main__':
    main()

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: 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: n = int(input())
ans = list()

for i in range(n):
        line = input().split(" ")
        a = float(line[0])
        b = float(line[1])
        c = float(line[2])
        if ((a**2 + b**2) == c**2) or ((b**2 + c**2) == a**2) or ((c**2 + a**2) == b**2):
            ans.append("YES")
        else:
            ans.append("NO")

for j in range(n):
        print(ans[j])

Python: # coding=utf-8
import math


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

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