Buggy python submission (verdict: Runtime Error):
def naiseki(x1,y1,z1,x2,y2,z2)
    if x1-x2+y1-y2+z1-z2 == 0:
        print("YES")
    else:
        print("NO")
f = input().split()
try:
    x1=f[0]
    y1=f[1]
    z1=f[2]
    x2=f[3]
    y2=f[4]
    z2=[f5]
    naiseki(x1,y1,z1,x2,y2,z2)
except:
    print("NO")

    

Fixed submission:
n = int(input())
for i in range(n):
    x1,y1,x2,y2,x3,y3,x4,y4=map(float,input().split())
    print("YES" if abs((y2-y1)*(x4-x3)-(x2-x1)*(y4-y3)) < 1e-10 else "NO")

Buggy python submission (verdict: Runtime Error):
def naiseki(x1,y1,x2,y2,x3,y3,x4,y4)
    if (x1-x2)*(x3-x4)+(y1-y2)*(y3-y4) == 0:
        print("YES")
    else:
        print("NO")
a = int(input())
for i in range(a):
    f = input().split()
    try:
        x1=f[0]
        y1=f[1]
        x2=f[2]
        y2=f[3]
        x3=f[4]
        y3=[f5]
        x4=f[6]
        y4=f[7]
    naiseki(x1,y1,x2,y2,x3,y3,x4,y4)
except:
    print("NO")

    

Fixed submission:
n = int(input())
for i in range(n):
    x1,y1,x2,y2,x3,y3,x4,y4=map(float,input().split())
    print("YES" if abs((y2-y1)*(x4-x3)-(x2-x1)*(y4-y3)) < 1e-10 else "NO")

Buggy python submission (verdict: Runtime Error):
def naiseki(x1,y1,x2,y2,x3,y3,x4,y4)
    if (x1-x2)*(x3-x4)+(y1-y2)*(y3-y4) == 0:
        print("YES")
    else:
        print("NO")
a = int(input())
for i in range(a):
    f = input().split()
    try:
        map(lambda:float(),f)
        x1=f[0]
        y1=f[1]
        x2=f[2]
        y2=f[3]
        x3=f[4]
        y3=[f5]
        x4=f[6]
        y4=f[7]
    naiseki(x1,y1,x2,y2,x3,y3,x4,y4)
except:
    print("NO")

    

Fixed submission:
n = int(input())
for i in range(n):
    x1,y1,x2,y2,x3,y3,x4,y4=map(float,input().split())
    print("YES" if abs((y2-y1)*(x4-x3)-(x2-x1)*(y4-y3)) < 1e-10 else "NO")

Buggy python submission (verdict: Runtime Error):
def naiseki(x1,y1,x2,y2,x3,y3,x4,y4)
    if (x1-x2)*(x3-x4)+(y1-y2)*(y3-y4) == 0:
        print("YES")
    else:
        print("NO")
a = int(input())
for i in range(a):
    f = input()
    try:
        g=map(lambda:float(),f.split())
        x1=g[0]
        y1=g[1]
        x2=g[2]
        y2=g[3]
        x3=g[4]
        y3=gf5]
        x4=g[6]
        y4=g[7]
    naiseki(x1,y1,x2,y2,x3,y3,x4,y4)
except:
    print("NO")

    

Fixed submission:
n = int(input())
for i in range(n):
    x1,y1,x2,y2,x3,y3,x4,y4=map(float,input().split())
    print("YES" if abs((y2-y1)*(x4-x3)-(x2-x1)*(y4-y3)) < 1e-10 else "NO")

Buggy python submission (verdict: Runtime Error):
import math
def naiseki(x1,y1,x2,y2,x3,y3,x4,y4):
    if ((x2-x1)*(y4-y3)-(y2-y1)*(x4-x3)) == 0:
        print("YES")
    else:
        print("NO")
a = int(input())

for i in range(a):
    f = map(float,raw_input().split())
    try:
        g=f
        x1=g[0]
        y1=g[1]
        x2=g[2]
        y2=g[3]
        x3=g[4]
        y3=g[5]
        x4=g[6]
        y4=g[7]
        naiseki(x1,y1,x2,y2,x3,y3,x4,y4)
    except:
        print("NO")

    

Fixed submission:
n = int(input())
for i in range(n):
    x1,y1,x2,y2,x3,y3,x4,y4=map(float,input().split())
    print("YES" if abs((y2-y1)*(x4-x3)-(x2-x1)*(y4-y3)) < 1e-10 else "NO")

Buggy python submission (verdict: Runtime Error):
import math
def naiseki(x1,y1,x2,y2,x3,y3,x4,y4):
    if ((x2-x1)*(y4-y3)-(y2-y1)*(x4-x3)) == 0:
        print("YES")
    else:
        print("NO")
a = int(input())
f=[]
for i in range(a):
    f.append(map(float,raw_input().split()))
for g in f:
    try:
        x1=g[0]
        y1=g[1]
        x2=g[2]
        y2=g[3]
        x3=g[4]
        y3=g[5]
        x4=g[6]
        y4=g[7]
        naiseki(x1,y1,x2,y2,x3,y3,x4,y4)
    except:
        print("NO")

Fixed submission:
n = int(input())
for i in range(n):
    x1,y1,x2,y2,x3,y3,x4,y4=map(float,input().split())
    print("YES" if abs((y2-y1)*(x4-x3)-(x2-x1)*(y4-y3)) < 1e-10 else "NO")

Buggy python submission (verdict: Runtime Error):
import math
def naiseki(x1,y1,x2,y2,x3,y3,x4,y4):
    if ((x2-x1)*(y4-y3)-(y2-y1)*(x4-x3)) == 0:
        print("YES")
    else:
        print("NO")
a = int(input())
f=[]
for i in range(a):
    f.append(map(float,raw_input().split()))
for g in f:
    try:
        x1=g[0]
        y1=g[1]
        x2=g[2]
        y2=g[3]
        x3=g[4]
        y3=g[5]
        x4=g[6]
        y4=g[7]
        naiseki(x1,y1,x2,y2,x3,y3,x4,y4)
    except:
        print("NO")

Fixed submission:
n = int(input())
for i in range(n):
    x1,y1,x2,y2,x3,y3,x4,y4=map(float,input().split())
    print("YES" if abs((y2-y1)*(x4-x3)-(x2-x1)*(y4-y3)) < 1e-10 else "NO")

Buggy python submission (verdict: Runtime Error):
import math
def naiseki(x1,y1,x2,y2,x3,y3,x4,y4):
    if ((x2-x1)*(y4-y3)-(y2-y1)*(x4-x3)) == 0:
        print("YES")
    else:
        print("NO")
a = int(raw_input())
f=[]
for i in range(a):
    f.append(map(float,raw_input().split()))
for g in f:
    try:
        x1=g[0]
        y1=g[1]
        x2=g[2]
        y2=g[3]
        x3=g[4]
        y3=g[5]
        x4=g[6]
        y4=g[7]
        naiseki(x1,y1,x2,y2,x3,y3,x4,y4)
    except:
        print("NO")

Fixed submission:
n = int(input())
for i in range(n):
    x1,y1,x2,y2,x3,y3,x4,y4=map(float,input().split())
    print("YES" if abs((y2-y1)*(x4-x3)-(x2-x1)*(y4-y3)) < 1e-10 else "NO")

Buggy python submission (verdict: Runtime Error):
def gaiseki(x1,y1,x2,y2,x3,y3,x4,y4):
    if ((x2-x1)*(y4-y3)-(y2-y1)*(x4-x3)) < 1e-10:
        print("YES")
    else:
        print("NO")
a = int(input())

for i in range(a):
    g=(map(float,raw_input().split()))
    try:
        x1=g[0]
        y1=g[1]
        x2=g[2]
        y2=g[3]
        x3=g[4]
        y3=g[5]
        x4=g[6]
        y4=g[7]
        gaiseki(x1,y1,x2,y2,x3,y3,x4,y4)
    except:
        print("NO")

Fixed submission:
n = int(input())
for i in range(n):
    x1,y1,x2,y2,x3,y3,x4,y4=map(float,input().split())
    print("YES" if abs((y2-y1)*(x4-x3)-(x2-x1)*(y4-y3)) < 1e-10 else "NO")

Buggy python submission (verdict: Runtime Error):
a = int(input())

for i in range(0,a):
    g=(map(float,raw_input().split()))
    try:
        x1=g[0]
        y1=g[1]
        x2=g[2]
        y2=g[3]
        x3=g[4]
        y3=g[5]
        x4=g[6]
        y4=g[7]
        if ((x2-x1)*(y4-y3)-(y2-y1)*(x4-x3)) < 1e-10:
            print("YES")
        else:
            print("NO")
    except:
        print("NO")

Fixed submission:
n = int(input())
for i in range(n):
    x1,y1,x2,y2,x3,y3,x4,y4=map(float,input().split())
    print("YES" if abs((y2-y1)*(x4-x3)-(x2-x1)*(y4-y3)) < 1e-10 else "NO")

Buggy python submission (verdict: Runtime Error):
def gaiseki(x1,y1,x2,y2,x3,y3,x4,y4):
    if ((x2-x1)*(y4-y3)-(y2-y1)*(x4-x3)) < 1e-10:
        print("YES")
    else:
        print("NO")
a = int(input())

for i in range(a):
    g=(map(float,raw_input().split()))
    
    x1=g[0]
    y1=g[1]
    x2=g[2]   
    y2=g[3]
    x3=g[4]
    y3=g[5]
    x4=g[6]
    y4=g[7]
    gaiseki(x1,y1,x2,y2,x3,y3,x4,y4)

Fixed submission:
n = int(input())
for i in range(n):
    x1,y1,x2,y2,x3,y3,x4,y4=map(float,input().split())
    print("YES" if abs((y2-y1)*(x4-x3)-(x2-x1)*(y4-y3)) < 1e-10 else "NO")

Buggy python submission (verdict: Runtime Error):
def gaiseki(x1,y1,x2,y2,x3,y3,x4,y4):
    if ((x2-x1)*(y4-y3)-(y2-y1)*(x4-x3)) < 1e-10:
        print("YES")
    else:
        print("NO")
a = int(input())

for i in range(a):
    g=(map(float,raw_input().split()))
    
    x1=g[0]
    y1=g[1]
    x2=g[2]   
    y2=g[3]
    x3=g[4]
    y3=g[5]
    x4=g[6]
    y4=g[7]
    gaiseki(x1,y1,x2,y2,x3,y3,x4,y4)

Fixed submission:
n = int(input())
for i in range(n):
    x1,y1,x2,y2,x3,y3,x4,y4=map(float,input().split())
    print("YES" if abs((y2-y1)*(x4-x3)-(x2-x1)*(y4-y3)) < 1e-10 else "NO")

Buggy python submission (verdict: Runtime Error):
a = int(input())
for i in range(a):
    x1,y1,x2,y2,x3,y3,x4,y4=list((map(float,raw_input().split())))
    if ((x2-x1)*(y4-y3)-(y2-y1)*(x4-x3)) < 1e-10:
        print("YES")
    else:
        print("NO")

Fixed submission:
n = int(input())
for i in range(n):
    x1,y1,x2,y2,x3,y3,x4,y4=map(float,input().split())
    print("YES" if abs((y2-y1)*(x4-x3)-(x2-x1)*(y4-y3)) < 1e-10 else "NO")

Buggy python submission (verdict: Runtime Error):
n = int(input())
for i in range(n):
    x1, y1, x2, y2, x3, y3, x4, y4 = list(map(float, raw_input().split()))
    if abs(((y2-y1)*(x4-x3) - (x2-x1)*(y4-y3))) < 1e-10:
        print("YES")
    else:
        print("NO")

Fixed submission:
n = int(input())
for i in range(n):
    x1,y1,x2,y2,x3,y3,x4,y4=map(float,input().split())
    print("YES" if abs((y2-y1)*(x4-x3)-(x2-x1)*(y4-y3)) < 1e-10 else "NO")