Buggy python submission (verdict: Runtime Error):
N = input()
a = []

for i in range(N):
    a.append(map(int, input().strip().split()))

for j in range(len(a)):
    number_1 = a[j][0]
    number_2 = a[j][1]
    number_3 = a[j][2]

    number_1 = number_1 * 2
    number_2 = number_2 * 2
    number_3 = number_3 * 2

    if number_1 = number_2 + number_3:
        print("YES")
    if number_2 = number_3 + number_1:
        print("YES")
    if number_3 = number_1 + number_2:
        print("YES")

    else:
        print("NO")

Fixed submission:
N = input()
a = []
for i in range(N):
    a.append(map(int, raw_input().split()))

for j in range(N):

    x = a[j][0] ** 2
    y = a[j][1] ** 2
    z = a[j][2] ** 2

    if x == y + z:
        print "YES"
    elif y == x + z:
        print "YES"
    elif z == x + y:
        print "YES"
    else:
        print "NO"

Buggy python submission (verdict: Runtime Error):
N = input()
a = []

for i in range(N):
    a.append(map(int, input().strip().split()))

for j in range(len(a)):
    number_1 = a[j][0]
    number_2 = a[j][1]
    number_3 = a[j][2]

    number_1 = number_1 * 2
    number_2 = number_2 * 2
    number_3 = number_3 * 2

    if number_1 = number_2 + number_3:
        print("YES")
    if number_2 = number_3 + number_1:
        print("YES")
    if number_3 = number_1 + number_2:
        print("YES")

    else:
        print("NO")

Fixed submission:
N = input()
a = []
for i in range(N):
    a.append(map(int, raw_input().split()))

for j in range(N):

    x = a[j][0] ** 2
    y = a[j][1] ** 2
    z = a[j][2] ** 2

    if x == y + z:
        print "YES"
    elif y == x + z:
        print "YES"
    elif z == x + y:
        print "YES"
    else:
        print "NO"

Buggy python submission (verdict: Runtime Error):
N = input()
a = []
answer_list = []

for i in range(N):
    a.append(map(int, input().strip().split()))

for j in range(len(a)):
    number_1 = a[j][0]
    number_2 = a[j][1]
    number_3 = a[j][2]

    number_1 = number_1 * 2
    number_2 = number_2 * 2
    number_3 = number_3 * 2

    if number_1 == number_2 + number_3:
        print("YES")
    if number_2 == number_3 + number_1:
        print("YES")
    if number_3 == number_1 + number_2:
        print("YES")

    else:
        print("NO")

Fixed submission:
N = input()
a = []
for i in range(N):
    a.append(map(int, raw_input().split()))

for j in range(N):

    x = a[j][0] ** 2
    y = a[j][1] ** 2
    z = a[j][2] ** 2

    if x == y + z:
        print "YES"
    elif y == x + z:
        print "YES"
    elif z == x + y:
        print "YES"
    else:
        print "NO"

Buggy python submission (verdict: Runtime Error):
def calc_triangle(list):
    a, b, c = list.sprit()

    a_2 = a ** 2
    b_2 = b ** 2
    c_2 = c ** 2

    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"



N = input()
a = []
for i in range(N):
    a.append(input())
    
for i in range(N):
    calc_triangle(a[i])

Fixed submission:
N = input()
a = []
for i in range(N):
    a.append(map(int, raw_input().split()))

for j in range(N):

    x = a[j][0] ** 2
    y = a[j][1] ** 2
    z = a[j][2] ** 2

    if x == y + z:
        print "YES"
    elif y == x + z:
        print "YES"
    elif z == x + y:
        print "YES"
    else:
        print "NO"

Buggy python submission (verdict: Runtime Error):
def calc_triangle(list):
    a, b, c = list.sprit()

    a_2 = a ** 2
    b_2 = b ** 2
    c_2 = c ** 2

    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"



N = input()
a = []
for i in range(N):
    a.append(input())
    
for i in range(N):
    calc_triangle(a[i])

Fixed submission:
N = input()
a = []
for i in range(N):
    a.append(map(int, raw_input().split()))

for j in range(N):

    x = a[j][0] ** 2
    y = a[j][1] ** 2
    z = a[j][2] ** 2

    if x == y + z:
        print "YES"
    elif y == x + z:
        print "YES"
    elif z == x + y:
        print "YES"
    else:
        print "NO"

Buggy python submission (verdict: Runtime Error):
N = input()
a = [input() for i in range(N)]
for i in range(N):
    a, b, c = list.sprit()

    a_2 = a ** 2
    b_2 = b ** 2
    c_2 = c ** 2

    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"

Fixed submission:
N = input()
a = []
for i in range(N):
    a.append(map(int, raw_input().split()))

for j in range(N):

    x = a[j][0] ** 2
    y = a[j][1] ** 2
    z = a[j][2] ** 2

    if x == y + z:
        print "YES"
    elif y == x + z:
        print "YES"
    elif z == x + y:
        print "YES"
    else:
        print "NO"

Buggy python submission (verdict: Runtime Error):
N = input()
a = []
for i in range(N):
    a.append(map(int, raw_input(.split)))
for i in range(N):
    a = a[i][0] ** 2
    b = a[i][1] ** 2
    c = a[i][2] ** 2

    if a == b + c or b == a + c or c == a + b:
        print "YES"
    else:
        print "NO"

Fixed submission:
N = input()
a = []
for i in range(N):
    a.append(map(int, raw_input().split()))

for j in range(N):

    x = a[j][0] ** 2
    y = a[j][1] ** 2
    z = a[j][2] ** 2

    if x == y + z:
        print "YES"
    elif y == x + z:
        print "YES"
    elif z == x + y:
        print "YES"
    else:
        print "NO"

Buggy python submission (verdict: Runtime Error):
N = input()
a = []
for i in range(N):
    a.append(map(int, raw_input().split())
for i in range(N):
    a = a[i][0] ** 2
    b = a[i][1] ** 2
    c = a[i][2] ** 2

    if a == b + c or b == a + c or c == a + b:
        print "YES"
    else:
        print "NO"

Fixed submission:
N = input()
a = []
for i in range(N):
    a.append(map(int, raw_input().split()))

for j in range(N):

    x = a[j][0] ** 2
    y = a[j][1] ** 2
    z = a[j][2] ** 2

    if x == y + z:
        print "YES"
    elif y == x + z:
        print "YES"
    elif z == x + y:
        print "YES"
    else:
        print "NO"