s_id
string
p_id
string
u_id
string
date
string
language
string
original_language
string
filename_ext
string
status
string
cpu_time
string
memory
string
code_size
string
code
string
error
string
stdout
string
s403182269
p00021
u354053070
1501982180
Python
Python3
py
Runtime Error
0
0
245
from math import isclose n = int(input()) for _ in range(n): x1, y1, x2, y2, x3, y3, x4, y4 = map(float, input().split()) if isclose((x2 - x1) * (y4 - y3) - (x4 - x3) * (y2 - y1), 0.0): print("YES") else: print("NO")
Traceback (most recent call last): File "/tmp/tmp5v_aocth/tmpt2l_r67r.py", line 3, in <module> n = int(input()) ^^^^^^^ EOFError: EOF when reading a line
s642712403
p00021
u236679854
1506116538
Python
Python3
py
Runtime Error
0
0
206
n = int(input()) for i in range(n): x1, y1, x2, y2, x3, y3, x4, y4 = map(float, input().split()) if (y2 - y1) / (x2 - x1) == (y4 - y3) / (x4 - x3): print("YES") else: print("NO")
Traceback (most recent call last): File "/tmp/tmpeobviwxc/tmpzx11ax_4.py", line 1, in <module> n = int(input()) ^^^^^^^ EOFError: EOF when reading a line
s487557836
p00021
u236679854
1506116586
Python
Python3
py
Runtime Error
0
0
206
n = int(input()) for i in range(n): x1, y1, x2, y2, x3, y3, x4, y4 = map(float, input().split()) if (y2 - y1) / (x2 - x1) == (y4 - y3) / (x4 - x3): print("YES") else: print("NO")
Traceback (most recent call last): File "/tmp/tmpnndmm3qx/tmpe7d15eti.py", line 1, in <module> n = int(input()) ^^^^^^^ EOFError: EOF when reading a line
s675720287
p00021
u236679854
1506116704
Python
Python3
py
Runtime Error
0
0
259
n = int(input()) for i in range(n): x1, y1, x2, y2, x3, y3, x4, y4 = map(float, input().split()) if x1 == x2 and x3 == x4: print("YES") elif (y2 - y1) / (x2 - x1) == (y4 - y3) / (x4 - x3): print("YES") else: print("NO")
Traceback (most recent call last): File "/tmp/tmpqn4xoswy/tmp_o2hqcmj.py", line 1, in <module> n = int(input()) ^^^^^^^ EOFError: EOF when reading a line
s579653499
p00021
u917432951
1511339024
Python
Python3
py
Runtime Error
0
0
591
import math if __name__ == '__main__': n = int(input()) for _ in range(n): x1,y1,x2,y2,x3,y3,x4,y4 = map(float,input().split()) #print((y2-y1)/(x2-x1) - (y4-y3)/(x4-x3)) '''if math.fabs(x1 - x2) <= 0.00001 and math.fabs( x3 - x4) <= 0.00001: print("YES") elif math.fabs(x1 - x2) <= 0.00001: print("NO") elif math.fabs(x3 - x4) <= 0.00001: print("NO") else: ''' if math.fabs((y2-y1)/(x2-x1) - (y4-y3)/(x4-x3)) <= 0.00001: print("YES") else: print("NO")
Traceback (most recent call last): File "/tmp/tmpb3e94o1j/tmp7mmkrpud.py", line 3, in <module> n = int(input()) ^^^^^^^ EOFError: EOF when reading a line
s626107771
p00021
u917432951
1511339154
Python
Python3
py
Runtime Error
0
0
593
import math if __name__ == '__main__': n = int(input()) for _ in range(n): x1,y1,x2,y2,x3,y3,x4,y4 = map(float,input().split()) #print((y2-y1)/(x2-x1) - (y4-y3)/(x4-x3)) '''if math.fabs(x1 - x2) <= 0.00001 and math.fabs( x3 - x4) <= 0.00001: print("YES") elif math.fabs(x1 - x2) <= 0.00001: print("NO") elif math.fabs(x3 - x4) <= 0.00001: print("NO") else: ''' if math.fabs((y2-y1)//(x2-x1) - (y4-y3)//(x4-x3)) <= 0.00001: print("YES") else: print("NO")
Traceback (most recent call last): File "/tmp/tmpc5nwlmng/tmp6i5o_hay.py", line 3, in <module> n = int(input()) ^^^^^^^ EOFError: EOF when reading a line
s980597344
p00021
u928329738
1511742963
Python
Python3
py
Runtime Error
0
0
270
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")
File "/tmp/tmpbletxrff/tmpmkensn19.py", line 1 def naiseki(x1,y1,z1,x2,y2,z2) ^ SyntaxError: expected ':'
s568770783
p00021
u928329738
1511743434
Python
Python3
py
Runtime Error
0
0
396
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")
File "/tmp/tmp_3cvp1_l/tmp87hjufzh.py", line 1 def naiseki(x1,y1,x2,y2,x3,y3,x4,y4) ^ SyntaxError: expected ':'
s472315596
p00021
u928329738
1511743589
Python
Python3
py
Runtime Error
0
0
426
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")
File "/tmp/tmp_s33c_dy/tmpcqdu8_u7.py", line 1 def naiseki(x1,y1,x2,y2,x3,y3,x4,y4) ^ SyntaxError: expected ':'
s393659288
p00021
u928329738
1511743770
Python
Python3
py
Runtime Error
0
0
428
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")
File "/tmp/tmp01ummjam/tmp1vnyca8v.py", line 16 y3=gf5] ^ SyntaxError: unmatched ']'
s516822254
p00021
u928329738
1511774971
Python
Python3
py
Runtime Error
0
0
451
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")
Traceback (most recent call last): File "/tmp/tmp6qx6r46e/tmp9d6v7ro4.py", line 7, in <module> a = int(input()) ^^^^^^^ EOFError: EOF when reading a line
s478745791
p00021
u928329738
1511775359
Python
Python3
py
Runtime Error
0
0
455
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")
Traceback (most recent call last): File "/tmp/tmpc3u7qji7/tmpoptv0shh.py", line 7, in <module> a = int(input()) ^^^^^^^ EOFError: EOF when reading a line
s714968236
p00021
u928329738
1511775574
Python
Python3
py
Runtime Error
0
0
455
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")
Traceback (most recent call last): File "/tmp/tmpu1fjgy42/tmpzstps35b.py", line 7, in <module> a = int(input()) ^^^^^^^ EOFError: EOF when reading a line
s630322901
p00021
u928329738
1511775704
Python
Python3
py
Runtime Error
0
0
459
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")
Traceback (most recent call last): File "/tmp/tmpspu_glun/tmp1t7c718k.py", line 7, in <module> a = int(raw_input()) ^^^^^^^^^ NameError: name 'raw_input' is not defined
s964814890
p00021
u928329738
1511776287
Python
Python3
py
Runtime Error
0
0
424
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")
Traceback (most recent call last): File "/tmp/tmpzrzeecml/tmpnjvqmj3f.py", line 6, in <module> a = int(input()) ^^^^^^^ EOFError: EOF when reading a line
s221741873
p00021
u928329738
1511776454
Python
Python3
py
Runtime Error
0
0
363
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")
Traceback (most recent call last): File "/tmp/tmpjb6ye861/tmpi1qdy8iv.py", line 1, in <module> a = int(input()) ^^^^^^^ EOFError: EOF when reading a line
s166363928
p00021
u928329738
1511776694
Python
Python3
py
Runtime Error
0
0
355
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)
Traceback (most recent call last): File "/tmp/tmp09r73ivd/tmp1youn73e.py", line 6, in <module> a = int(input()) ^^^^^^^ EOFError: EOF when reading a line
s063863721
p00021
u928329738
1511776748
Python
Python3
py
Runtime Error
0
0
355
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)
Traceback (most recent call last): File "/tmp/tmp3erpmtf0/tmpeykqjbvl.py", line 6, in <module> a = int(input()) ^^^^^^^ EOFError: EOF when reading a line
s861030992
p00021
u928329738
1511776914
Python
Python3
py
Runtime Error
0
0
203
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")
Traceback (most recent call last): File "/tmp/tmpluao_lps/tmp7ipzg7zm.py", line 1, in <module> a = int(input()) ^^^^^^^ EOFError: EOF when reading a line
s934877178
p00021
u928329738
1511777315
Python
Python3
py
Runtime Error
0
0
218
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")
Traceback (most recent call last): File "/tmp/tmp7wt2xxb0/tmp865leo3m.py", line 1, in <module> n = int(input()) ^^^^^^^ EOFError: EOF when reading a line
s133097880
p00021
u548155360
1512399213
Python
Python3
py
Runtime Error
0
0
285
# coding=utf-8 points_list = list(map(float, input().split())) abx = points_list[2] - points_list[0] aby = points_list[3] - points_list[1] cdx = points_list[6] - points_list[4] cdy = points_list[7] - points_list[5] if abx == cdx and aby == cdy: print('YES') else: print('NO')
Traceback (most recent call last): File "/tmp/tmp9mv66h1h/tmp7t78h5pb.py", line 3, in <module> points_list = list(map(float, input().split())) ^^^^^^^ EOFError: EOF when reading a line
s945279973
p00021
u548155360
1512399573
Python
Python3
py
Runtime Error
0
0
354
# coding=utf-8 n = int(input()) for i in range(n): points_list = list(map(float, input().split())) abx = points_list[2] - points_list[0] aby = points_list[3] - points_list[1] cdx = points_list[6] - points_list[4] cdy = points_list[7] - points_list[5] if abx / cdx == aby / cdy: print('YES') else: print('NO')
Traceback (most recent call last): File "/tmp/tmpj058xgpf/tmpjj8m9i8i.py", line 3, in <module> n = int(input()) ^^^^^^^ EOFError: EOF when reading a line
s109572367
p00021
u548155360
1512399649
Python
Python3
py
Runtime Error
0
0
461
# coding=utf-8 n = int(input()) for i in range(n): points_list = list(map(float, input().split())) abx = points_list[2] - points_list[0] aby = points_list[3] - points_list[1] cdx = points_list[6] - points_list[4] cdy = points_list[7] - points_list[5] if cdx == 0: if cdy == 0: print('YES') else: print('NO') elif abx / cdx == aby / cdy: print('YES') else: print('NO')
Traceback (most recent call last): File "/tmp/tmpp5lqjjpe/tmpfwyqp7mz.py", line 3, in <module> n = int(input()) ^^^^^^^ EOFError: EOF when reading a line
s379867405
p00021
u568287817
1512638535
Python
Python3
py
Runtime Error
0
0
315
def calc(a): i1 = (a[3] - a[1]) / (a[2] - a[0]) i2 = (a[7] - a[5]) / (a[6] - a[4]) if i1 == i2: print("YES") else: print("NO") if __name__ == '__main__': N = int(input()) a = [] for i in range(0, N): a.append(list(map(float, input().split()))) calc(a[i])
Traceback (most recent call last): File "/tmp/tmps7kb9x28/tmpfzezgdu3.py", line 10, in <module> N = int(input()) ^^^^^^^ EOFError: EOF when reading a line
s706002070
p00021
u568287817
1512638615
Python
Python3
py
Runtime Error
0
0
315
def calc(a): i1 = (a[3] - a[1]) / (a[2] - a[0]) i2 = (a[7] - a[5]) / (a[6] - a[4]) if i1 == i2: print("YES") else: print("NO") if __name__ == '__main__': N = int(input()) a = [] for i in range(0, N): a.append(list(map(float, input().split()))) calc(a[i])
Traceback (most recent call last): File "/tmp/tmpsoti11qd/tmp2uqa6u8o.py", line 10, in <module> N = int(input()) ^^^^^^^ EOFError: EOF when reading a line
s785997251
p00021
u205327055
1513222429
Python
Python
py
Runtime Error
0
0
248
n=input() for i in range(0,n): zahyou=map(float,raw_input().split(" ")) a=(zahyou[3]-zahyou[1])/(zahyou[2]-zahyou[0]) b=(zahyou[7]-zahyou[5])/(zahyou[6]-zahyou[4]) if a==b or a==-b: print "YES" else: print "NO",
File "/tmp/tmp6zicv7fe/tmpo0x5ibeh.py", line 8 print "YES" ^^^^^^^^^^^ SyntaxError: Missing parentheses in call to 'print'. Did you mean print(...)?
s305031978
p00021
u205327055
1513222836
Python
Python
py
Runtime Error
0
0
284
n=int(raw_input()) for i in range(0,n): zahyou=map(float,raw_input().split(" ")) a=(zahyou[3]-zahyou[1])/(zahyou[2]-zahyou[0]) b=(zahyou[7]-zahyou[5])/(zahyou[6]-zahyou[4]) if a==b or a==-b: print "YES" else: print "NO",
File "/tmp/tmp2stjrtwq/tmpz2u4q8mb.py", line 7 print "YES" ^^^^^^^^^^^ SyntaxError: Missing parentheses in call to 'print'. Did you mean print(...)?
s225884487
p00021
u205327055
1513223447
Python
Python
py
Runtime Error
0
0
256
# -*- coding:utf-8 -*- n=int(raw_input()) for i in range(0,n): a,b,c,d,e,f,g,h=map(float,raw_input().split(" ")) t=(d-b)/(c-a) y=(h-f)/(g-e) if y==t or y==-t: print "YES" else: print "NO",
File "/tmp/tmp544gj5z6/tmpc2n_yzmf.py", line 3 for i in range(0,n): IndentationError: unexpected indent
s872803514
p00021
u205327055
1513223504
Python
Python
py
Runtime Error
0
0
224
# -*- coding:utf-8 -*- n=int(raw_input()) for i in range(0,n): a,b,c,d,e,f,g,h=map(float,raw_input().split(" ")) t=(d-b)/(c-a) y=(h-f)/(g-e) if y==t or y==-t: print "YES" else: print "NO",
File "/tmp/tmp8w0s5tg9/tmp_tjpv_z7.py", line 8 print "YES" ^^^^^^^^^^^ SyntaxError: Missing parentheses in call to 'print'. Did you mean print(...)?
s387330312
p00021
u205327055
1513223536
Python
Python
py
Runtime Error
0
0
222
# -*- coding:utf-8 -*- n=int(raw_input()) for i in range(n): a,b,c,d,e,f,g,h=map(float,raw_input().split(" ")) t=(d-b)/(c-a) y=(h-f)/(g-e) if y==t or y==-t: print "YES" else: print "NO",
File "/tmp/tmps4xzuavb/tmph3vu9vz6.py", line 8 print "YES" ^^^^^^^^^^^ SyntaxError: Missing parentheses in call to 'print'. Did you mean print(...)?
s252326330
p00021
u205327055
1513223568
Python
Python
py
Runtime Error
0
0
219
# -*- coding:utf-8 -*- n=int(raw_input()) for i in range(n): a,b,c,d,e,f,g,h=map(float,raw_input().split()) t=(d-b)/(c-a) y=(h-f)/(g-e) if y==t or y==-t: print "YES" else: print "NO",
File "/tmp/tmpguxwfhgo/tmp109n21w7.py", line 8 print "YES" ^^^^^^^^^^^ SyntaxError: Missing parentheses in call to 'print'. Did you mean print(...)?
s756036525
p00021
u299798926
1513225574
Python
Python3
py
Runtime Error
0
0
346
count = int(input()) for i in range(count): x = list(map(float ,input().split())) x1=x[2]-x[0] y1=x[3]-x[1] x2=x[6]-x[4] y2=x[7]-x[5] if x1==0: if x2==0: print("YES") else: print("NO") else: if y1/x1==y2/x2: print("YES") else: print("NO")
Traceback (most recent call last): File "/tmp/tmp3v7tzuxr/tmp2oal1ne3.py", line 1, in <module> count = int(input()) ^^^^^^^ EOFError: EOF when reading a line
s658283737
p00021
u028347703
1514694127
Python
Python3
py
Runtime Error
0
0
268
n = int(input()) for i in range(n): x1, y1, x2, y2, x3, y3, x4, y4 = [float(j) for j in input().split()] if x2 - x1 == 0: if x4 - x3 == 0: print("YES") else: print("NO") print("YES" if (y2 - y1) / (x2 - x1) == (y4 - y3) / (x4 - x3) else "NO")
Traceback (most recent call last): File "/tmp/tmpe5lis60d/tmpk3nt5ndk.py", line 1, in <module> n = int(input()) ^^^^^^^ EOFError: EOF when reading a line
s710832089
p00021
u028347703
1514694196
Python
Python3
py
Runtime Error
0
0
272
n = int(input()) for i in range(n): x1, y1, x2, y2, x3, y3, x4, y4 = [float(j) for j in input().split()] if x2 - x1 == 0.0: if x4 - x3 == 0.0: print("YES") else: print("NO") print("YES" if (y2 - y1) / (x2 - x1) == (y4 - y3) / (x4 - x3) else "NO")
Traceback (most recent call last): File "/tmp/tmplpx956p4/tmp8nju_tlz.py", line 1, in <module> n = int(input()) ^^^^^^^ EOFError: EOF when reading a line
s217107841
p00021
u028347703
1514694309
Python
Python3
py
Runtime Error
0
0
312
n = int(input()) for i in range(n): x1, y1, x2, y2, x3, y3, x4, y4 = [float(j) for j in input().split()] if x2 - x1 == 0.0: if x4 - x3 == 0.0: print("YES") else: print("NO") elif x4 - x3 == 0.0: print("NO") print("YES" if (y2 - y1) / (x2 - x1) == (y4 - y3) / (x4 - x3) else "NO")
Traceback (most recent call last): File "/tmp/tmpmx0lo5qw/tmpd0zkb2nx.py", line 1, in <module> n = int(input()) ^^^^^^^ EOFError: EOF when reading a line
s956143872
p00021
u600263347
1514773724
Python
Python3
py
Runtime Error
0
0
270
def main(): n = int(input()) for i in range(n): x1,y1,x2,y2,x3,y3,x4,y4 = map(float,input().split()) if (y2-y1)/(x2-x1) == (y4 - y3)/(x4 -x3): print("YES") else: print("NO") if __name__ == '__main__': main()
Traceback (most recent call last): File "/tmp/tmp5ewxxixb/tmp9gnoylnb.py", line 11, in <module> main() File "/tmp/tmp5ewxxixb/tmp9gnoylnb.py", line 2, in main n = int(input()) ^^^^^^^ EOFError: EOF when reading a line
s363587178
p00021
u600263347
1514773889
Python
Python3
py
Runtime Error
0
0
270
def main(): n = int(input()) for i in range(n): x1,y1,x2,y2,x3,y3,x4,y4 = map(float,input().split()) if (y2-y1)/(x2-x1) == (y4 - y3)/(x4 -x3): print("YES") else: print("NO") if __name__ == '__main__': main()
Traceback (most recent call last): File "/tmp/tmpbwtly5bq/tmpmq6zawh9.py", line 11, in <module> main() File "/tmp/tmpbwtly5bq/tmpmq6zawh9.py", line 2, in main n = int(input()) ^^^^^^^ EOFError: EOF when reading a line
s923288229
p00021
u298999032
1515138846
Python
Python3
py
Runtime Error
0
0
223
n=int(input()) for i in range(n): x1,y1,x2,y2,x3,y3,x4,y4=map(float,input().split()) if ((y1-y2)/(x1-x2))==((y4-y3)/(x4-x3)) or (y1-y2)/(x1-x2)==((y3-y4)/(x3-x4)): print('YES') else: print('NO')
Traceback (most recent call last): File "/tmp/tmp66wt871h/tmpxzvpkekd.py", line 1, in <module> n=int(input()) ^^^^^^^ EOFError: EOF when reading a line
s292143968
p00021
u298999032
1515140021
Python
Python3
py
Runtime Error
0
0
223
n=int(input()) for i in range(n): x1,y1,x2,y2,x3,y3,x4,y4=map(float,input().split()) if ((y1-y2)/(x1-x2))==((y4-y3)/(x4-x3)) or (y1-y2)/(x1-x2)==((y3-y4)/(x3-x4)): print('YES') else: print('NO')
Traceback (most recent call last): File "/tmp/tmptg2mot_1/tmpzf1boop1.py", line 1, in <module> n=int(input()) ^^^^^^^ EOFError: EOF when reading a line
s943654957
p00021
u328199937
1519042505
Python
Python3
py
Runtime Error
0
0
188
for i in range(int(input())): x1, y1, x2, y2, x3, y3, x4, y4 = map(float, input().split(" ")) if (y1 - y2) / (x1 - x2) == (y4 - y3)/ (x4 - x3): print("YES") else: print("NO")
Traceback (most recent call last): File "/tmp/tmp8e6wxeef/tmpv_otwx7w.py", line 1, in <module> for i in range(int(input())): ^^^^^^^ EOFError: EOF when reading a line
s284434011
p00021
u328199937
1519042644
Python
Python3
py
Runtime Error
0
0
194
n = int(input()) for i in range(n): x1, y1, x2, y2, x3, y3, x4, y4 = map(float, input().split(" ")) if (y1 - y2) / (x1 - x2) == (y4 - y3)/ (x4 - x3): print("YES") else: print("NO")
Traceback (most recent call last): File "/tmp/tmpmr8s_xf3/tmpryhurf2k.py", line 1, in <module> n = int(input()) ^^^^^^^ EOFError: EOF when reading a line
s153306615
p00021
u328199937
1519042749
Python
Python3
py
Runtime Error
0
0
205
n = int(input()) for i in range(n): x1, y1, x2, y2, x3, y3, x4, y4 = map(float, input().split(" ")) if abs((y1 - y2) / (x1 - x2) - (y4 - y3)/ (x4 - x3)) < 1e-10: print("YES") else: print("NO")
Traceback (most recent call last): File "/tmp/tmpxt9gjmw0/tmp_zhl2p34.py", line 1, in <module> n = int(input()) ^^^^^^^ EOFError: EOF when reading a line
s342994245
p00021
u328199937
1519042797
Python
Python3
py
Runtime Error
0
0
202
n = int(input()) for i in range(n): x1, y1, x2, y2, x3, y3, x4, y4 = map(float, input().split()) if abs((y1 - y2) / (x1 - x2) - (y4 - y3)/ (x4 - x3)) < 1e-10: print("YES") else: print("NO")
Traceback (most recent call last): File "/tmp/tmpqjm612oh/tmpy9fgwbvd.py", line 1, in <module> n = int(input()) ^^^^^^^ EOFError: EOF when reading a line
s425875337
p00021
u166871988
1523769317
Python
Python3
py
Runtime Error
0
0
184
n=int(input()) for _ in range(n): p=[float(i) for i in input().split()] if round((p[3]-p[1])/(p[2]-p[0]),5)==round((p[7]-p[5])/(p[6]-p[4]),5):print("YES") else:print("NO")
Traceback (most recent call last): File "/tmp/tmpe76qeqx2/tmpj6xtgq2s.py", line 1, in <module> n=int(input()) ^^^^^^^ EOFError: EOF when reading a line
s017759094
p00021
u166871988
1523769397
Python
Python3
py
Runtime Error
0
0
202
n=int(input()) for _ in range(n): p=[float(i) for i in input().split()] if round((p[3]-p[1])/(p[2]-p[0]),5)==round((p[7]-p[5])/(p[6]-p[4]),5): print("YES") else: print("NO")
Traceback (most recent call last): File "/tmp/tmprtu_uyq5/tmpvnl2vif_.py", line 1, in <module> n=int(input()) ^^^^^^^ EOFError: EOF when reading a line
s157945931
p00021
u166871988
1523769536
Python
Python3
py
Runtime Error
0
0
223
n=int(input()) for j in range(n): p=[float(i) for i in input().split()] ab=round((p[3]-p[1])/(p[2]-p[0]),5) cd=round((p[7]-p[5])/(p[6]-p[4]),5) if ab==cd: print("YES") else: print("NO")
Traceback (most recent call last): File "/tmp/tmpm1ynm0m2/tmpv22rkjwg.py", line 1, in <module> n=int(input()) ^^^^^^^ EOFError: EOF when reading a line
s016102868
p00021
u166871988
1523769671
Python
Python3
py
Runtime Error
0
0
205
n=int(input()) for j in range(n): p=[float(i) for i in input().split()] ab=(p[3]-p[1])/(p[2]-p[0]) cd=(p[7]-p[5])/(p[6]-p[4]) if ab==cd: print("YES") else: print("NO")
Traceback (most recent call last): File "/tmp/tmp0q8hfizy/tmppdx912oq.py", line 1, in <module> n=int(input()) ^^^^^^^ EOFError: EOF when reading a line
s456151412
p00021
u136916346
1527381702
Python
Python3
py
Runtime Error
0
0
451
r=[] for i in range(int(input())): d=[float(i) for i in input().split()] if d[0]-d[2] != 0 and d[4]-d[6] != 0: a=(d[1]-d[3])/(d[0]-d[2]) b=(d[5]-d[7])/(d[4]-d[6]) if a==b:r.extend([1]) else:r.extend([0]) else if (d[0]==d[2] and d[4]==d[6]): r.extend([1]) else if (d[1]==d[3] and d[5]==d[7]): r.extend([1]) else: r.extend([0]) [print("YES") if i else print("NO") for i in r]
File "/tmp/tmp25use0i6/tmpedh4m_qu.py", line 9 else if (d[0]==d[2] and d[4]==d[6]): ^^ SyntaxError: expected ':'
s017955530
p00021
u894941280
1348658645
Python
Python
py
Runtime Error
0
0
176
for i in range(int(input())): x1,y1,x2,y2,x3,y3,x4,y4=map(float,raw_input().split()) ans,ans2=(y2-y1)/(x2-x1),(y4-y3)/(x4-x3) if ans==ans2: print "YES" else: print "NO"
File "/tmp/tmpcaf32w4a/tmp8292sg58.py", line 4 if ans==ans2: print "YES" ^^^^^^^^^^^ SyntaxError: Missing parentheses in call to 'print'. Did you mean print(...)?
s966476429
p00021
u504990413
1353417627
Python
Python
py
Runtime Error
0
5648
231
num =input() YN = [] for i in range(num): x = map(float, raw_input().split(' ')) if (x[0]-x[2])/(x[1]-x[3]) == (x[4]-x[6])/(x[5]-x[7]): YN.append('YES') else: YN.append('NO') for i in YN: print i
File "/tmp/tmpzfp96nyw/tmp55iq4p29.py", line 14 print i ^^^^^^^ SyntaxError: Missing parentheses in call to 'print'. Did you mean print(...)?
s305247146
p00021
u504990413
1353417774
Python
Python
py
Runtime Error
0
5648
187
num =input() for i in range(num): x = map(float, raw_input().split(' ')) if (x[0]-x[2])/(x[1]-x[3]) == (x[4]-x[6])/(x[5]-x[7]): print 'YES' else: print 'NO'
File "/tmp/tmpn1m4fxe2/tmpa4mbo5hb.py", line 8 print 'YES' ^^^^^^^^^^^ SyntaxError: Missing parentheses in call to 'print'. Did you mean print(...)?
s980758188
p00021
u504990413
1353418138
Python
Python
py
Runtime Error
0
5648
345
num =input() for i in range(num): x = map(float, raw_input().split(' ')) if x[1]-x[3] == 0 or x[1]-x[3] == 0: if x[1]-x[3] == 0 and x[1]-x[3] == 0: print 'YES' elif: print 'NO' elif (x[0]-x[2])/(x[1]-x[3]) == (x[4]-x[6])/(x[5]-x[7]): print 'YES' else: print 'NO'
File "/tmp/tmpdcnskonj/tmpesvgzuro.py", line 8 print 'YES' ^^^^^^^^^^^ SyntaxError: Missing parentheses in call to 'print'. Did you mean print(...)?
s247290506
p00021
u504990413
1353418187
Python
Python
py
Runtime Error
0
5648
346
num =input() for i in range(num): x = map(float, raw_input().split(' ')) if x[1]-x[3] == 0 or x[5]-x[7] == 0: if x[1]-x[3] == 0 and x[5]-x[7] == 0: print 'YES' elif: print 'NO' elif (x[0]-x[2])/(x[1]-x[3]) == (x[4]-x[6])/(x[5]-x[7]): print 'YES' else: print 'NO'
File "/tmp/tmpjg6ohdd6/tmp93ehw1yf.py", line 9 print 'YES' ^^^^^^^^^^^ SyntaxError: Missing parentheses in call to 'print'. Did you mean print(...)?
s801819364
p00021
u575065019
1353665114
Python
Python
py
Runtime Error
0
1264
185
n = input() for i in range(n): x1,y1,x2,y2,x3,y3,x4,y4 = map(float,raw_input().split()) if ((y2-y1)/(x2-x1) == (y4-y3)/(x4-x3)): print 'YES' else: print 'NO'
File "/tmp/tmpa73sxhqy/tmpea6phgr_.py", line 5 print 'YES' ^^^^^^^^^^^ SyntaxError: Missing parentheses in call to 'print'. Did you mean print(...)?
s000390522
p00021
u575065019
1353665228
Python
Python
py
Runtime Error
0
1264
232
ans = [] n = input() for i in range(n): x1,y1,x2,y2,x3,y3,x4,y4 = map(float,raw_input().split()) if ((y2-y1)/(x2-x1) == (y4-y3)/(x4-x3)): ans.append('YES') else: ans.append('NO') for i in ans: print i
File "/tmp/tmpzweomn3j/tmp4hak043v.py", line 10 print i ^^^^^^^ SyntaxError: Missing parentheses in call to 'print'. Did you mean print(...)?
s595852901
p00021
u575065019
1353665393
Python
Python
py
Runtime Error
0
1264
538
ans = [] n = input() for i in range(n): x1,y1,x2,y2,x3,y3,x4,y4 = map(float,raw_input().split()) if (x2-x1 ==0) or (y2-y1 == 0): if (x2-x1 ==0) and (y2-y1 == 0): ans.append('YES') else: ans.append('NO') if (x4-x3 ==0) or (y4-y3 == 0): if (x4-x3 ==0) and (y4-y3 == 0): ans.append('YES') else: ans.append('NO') elif ((y2-y1)/(x2-x1) == (y4-y3)/(x4-x3)): ans.append('YES') else: ans.append('NO') for i in ans: print i
File "/tmp/tmphgct1596/tmplul69v8l.py", line 20 print i ^^^^^^^ SyntaxError: Missing parentheses in call to 'print'. Did you mean print(...)?
s618961984
p00021
u894941280
1355933885
Python
Python
py
Runtime Error
0
0
182
a = int(input()) for i in range(a): ans = map(float,raw_input().split()) if (ans[3]-ans[1])/(ans[2]-ans[0]) == (ans[7]-ans[5])/(ans[6]-ans[4]): print "YES" else: print "NO"
File "/tmp/tmp534hzaai/tmplh5mve1p.py", line 5 print "YES" ^^^^^^^^^^^ SyntaxError: Missing parentheses in call to 'print'. Did you mean print(...)?
s774463514
p00021
u894941280
1355990579
Python
Python
py
Runtime Error
0
0
252
for i in range(int(input())): x1, y1, x2, y2, x3, y3, x4, y4 = map(float,raw_input().split()) if (y2-y1)/(x2-x1) == (y4-y3)/(x4-x3): ans = (y2-y1)/(x2-x1) if y1-ans*x1 == y3-ans*x3: print "NO" else: print "YES" else: print "NO"
File "/tmp/tmpqqmjsxod/tmpxy2a3661.py", line 6 print "NO" ^^^^^^^^^^ SyntaxError: Missing parentheses in call to 'print'. Did you mean print(...)?
s791443574
p00021
u280179677
1356078561
Python
Python
py
Runtime Error
0
0
681
#!/usr/bin/python import sys from collections import namedtuple from math import sqrt Point = namedtuple('Point', 'x y') def datasets(): raw_input() for line in sys.stdin: x1, y1, x2, y2, x3, y3, x4, y4 = [float(w) for w in line.strip().split()] p1 = Point(x1, y1) p2 = Point(x2, y2) p3 = Point(x3, y3) p4 = Point(x4, y4) yield p1, p2, p3, p4 def main(): for A, B, C, D in datasets(): a1 = (B.y - A.y) * -1 b1 = B.x - A.x a2 = (D.y - C.y) * -1 b2 = D.y - C.y if a1*b2 == a2*b1: print "YES" else: print "NO" if __name__ == '__main__': main()
File "/tmp/tmpvbsflh0n/tmpa6prkasb.py", line 26 print "YES" ^^^^^^^^^^^ SyntaxError: Missing parentheses in call to 'print'. Did you mean print(...)?
s817795904
p00021
u280179677
1356078720
Python
Python
py
Runtime Error
0
0
711
#!/usr/bin/python import sys from collections import namedtuple from math import sqrt Point = namedtuple('Point', 'x y') def datasets(): raw_input() s = sys.stdin.read() for line in s.splitlines(): x1, y1, x2, y2, x3, y3, x4, y4 = [float(w) for w in line.strip().split()] p1 = Point(x1, y1) p2 = Point(x2, y2) p3 = Point(x3, y3) p4 = Point(x4, y4) yield p1, p2, p3, p4 def main(): for A, B, C, D in datasets(): a1 = (B.y - A.y) * -1 b1 = B.x - A.x a2 = (D.y - C.y) * -1 b2 = D.y - C.y if a1*b2 == a2*b1: print "YES" else: print "NO" if __name__ == '__main__': main()
File "/tmp/tmpoos6rjee/tmpnv_o6xon.py", line 27 print "YES" ^^^^^^^^^^^ SyntaxError: Missing parentheses in call to 'print'. Did you mean print(...)?
s696726162
p00021
u280179677
1356078842
Python
Python
py
Runtime Error
0
0
720
#!/usr/bin/python import sys from collections import namedtuple from math import sqrt Point = namedtuple('Point', 'x y') def datasets(): sys.stdin.readline() s = sys.stdin.read() for line in s.splitlines(): x1, y1, x2, y2, x3, y3, x4, y4 = [float(w) for w in line.strip().split()] p1 = Point(x1, y1) p2 = Point(x2, y2) p3 = Point(x3, y3) p4 = Point(x4, y4) yield p1, p2, p3, p4 def main(): for A, B, C, D in datasets(): a1 = (B.y - A.y) * -1 b1 = B.x - A.x a2 = (D.y - C.y) * -1 b2 = D.y - C.y if a1*b2 == a2*b1: print "YES" else: print "NO" if __name__ == '__main__': main()
File "/tmp/tmp86s1wzg5/tmpbcqdfne4.py", line 27 print "YES" ^^^^^^^^^^^ SyntaxError: Missing parentheses in call to 'print'. Did you mean print(...)?
s280956239
p00021
u419407022
1356091149
Python
Python
py
Runtime Error
0
23000
616
class Point(object): x = 0.0 y = 0.0 def __init__(self, x, y): self.x = x self.y = y def __sub__(left, right): return Point(left.x - right.x, left.y - right.y) #cross def __mul__(left, right): return left.x * right.y - left.y * right.x while True: try: (x1, y1, x2, y2, x3, y3, x4, y4) = [int(i) for i in raw_input().split()] except EOFError: break a = Point(x1, y1) b = Point(x2, y2) c = Point(x3, y3) d = Point(x4, y4) ab = a - b cd = c - d if(a * b == 0): print 'YES' else: print 'NO'
File "/tmp/tmp_1xs0f4m/tmp9ncuvj84.py", line 25 print 'YES' ^^^^^^^^^^^ SyntaxError: Missing parentheses in call to 'print'. Did you mean print(...)?
s658805237
p00021
u419407022
1356091291
Python
Python
py
Runtime Error
0
23000
590
class Point(object): x = 0.0 y = 0.0 def __init__(self, x, y): self.x = x self.y = y def __sub__(left, right): return Point(left.x - right.x, left.y - right.y) #cross def __mul__(left, right): return left.x * right.y - left.y * right.x for i in range(int(raw_input())): (x1, y1, x2, y2, x3, y3, x4, y4) = [int(i) for i in raw_input().split()] a = Point(x1, y1) b = Point(x2, y2) c = Point(x3, y3) d = Point(x4, y4) ab = a - b cd = c - d if(a * b == 0): print 'YES' else: print 'NO'
File "/tmp/tmpj12oxxw6/tmphb6uresw.py", line 22 print 'YES' ^^^^^^^^^^^ SyntaxError: Missing parentheses in call to 'print'. Did you mean print(...)?
s097537365
p00021
u419407022
1356091430
Python
Python
py
Runtime Error
0
23000
648
class Point(object): x = 0.0 y = 0.0 def __init__(self, x, y): self.x = x self.y = y def __sub__(left, right): return Point(left.x - right.x, left.y - right.y) #cross def __mul__(left, right): return left.x * right.y - left.y * right.x for i in range(int(raw_input())): (x1, y1, x2, y2, x3, y3, x4, y4) = [float(i) for i in raw_input().split()] a = Point(x1, y1) b = Point(x2, y2) c = Point(x3, y3) d = Point(x4, y4) ab = a - b cd = c - d if(a * b == 0.0): print 'YES' elif(a * (Point - b) == 0.0): print 'YES' else: print 'NO'
File "/tmp/tmpmfnthmjt/tmpf7hkh3ce.py", line 22 print 'YES' ^^^^^^^^^^^ SyntaxError: Missing parentheses in call to 'print'. Did you mean print(...)?
s946208750
p00021
u894941280
1356955030
Python
Python
py
Runtime Error
0
0
269
for i in range(int(input())): x1,y1,x2,y2,x3,y3,x4,y4 = map(float,raw_input().split()) a1 = (y2-y1)/(x2-x1); a2 = (y4-y3)/(x4-x3) b1 = y1-(a1*x1) ; b2 = y3-(a2*x3) if a1 == a2: if b1 == b2: print "NO" else: print "YES" else: print "NO"
File "/tmp/tmppd9f62md/tmpdr1fo192.py", line 7 print "NO" ^^^^^^^^^^ SyntaxError: Missing parentheses in call to 'print'. Did you mean print(...)?
s693731778
p00021
u782850731
1362103262
Python
Python
py
Runtime Error
0
0
384
from __future__ import (absolute_import, division, print_function, unicode_literals) from sys import stdin def gradient(x1, y1, x2, y2): return (y1 - y2) / (x1 - x2) for n in xrange(int(stdin.readline())): p = [float(s) for s in stdin.readline().split()] if gradient(*p[:4]) == gradient(*p[4:]): print('YES') else: print('NO')
Traceback (most recent call last): File "/tmp/tmpc4eukell/tmp533pcgdc.py", line 8, in <module> for n in xrange(int(stdin.readline())): ^^^^^^ NameError: name 'xrange' is not defined. Did you mean: 'range'?
s479900738
p00021
u894941280
1362608257
Python
Python
py
Runtime Error
0
0
217
for i in range(input()): x1,y1,x2,y2,x3,y3,x4,y4 = map(float,raw_input().split()) if x1==x2 and x3 ==x4: print "YES" else: if (y2-y1)/(x2-x1) ==(y4-y3)/(x4-x3): print "YES" else: print "NO"
File "/tmp/tmpqpihd_5d/tmp2vi5jgai.py", line 3 if x1==x2 and x3 ==x4: print "YES" ^^^^^^^^^^^ SyntaxError: Missing parentheses in call to 'print'. Did you mean print(...)?
s928690372
p00021
u894941280
1362643269
Python
Python
py
Runtime Error
0
0
228
for i in range(input()): x1, y1, x2, y2, x3, y3, x4, y4 = map(float,raw_input().split()) if x1 == x2 and x3 == x4: print "YES" else: if (y1-y2)/(x1-x2) == (y3-y4)/(x3-x4): print "YES" else: print "NO"
File "/tmp/tmpnymkjmtn/tmpvdjpf_i7.py", line 3 if x1 == x2 and x3 == x4: print "YES" ^^^^^^^^^^^ SyntaxError: Missing parentheses in call to 'print'. Did you mean print(...)?
s340914048
p00021
u282635979
1363437339
Python
Python
py
Runtime Error
0
0
167
n = input() + 1 for val in range(1,n): x = map(float,raw_input().split(' ')) if (x[0]-x[2])/(x[1]-x[3]) == (x[4]-x[6])/(x[5]-x[7]): print 'YES' else: print 'NO'
File "/tmp/tmpq3awd9py/tmp8cqdb7yp.py", line 5 print 'YES' ^^^^^^^^^^^ SyntaxError: Missing parentheses in call to 'print'. Did you mean print(...)?
s986505848
p00021
u542421762
1368198308
Python
Python
py
Runtime Error
0
0
527
import sys def parallelism(x1, y1, x2, y2, x3, y3, x4, y4): if x1 == x2: return x3 == x4 elif y1 == y2: return y3 == y4 else: return (y2 - y1) / (x2 - x1) == (y4 - y3) / (x4 - x3) #input_file = open(sys.argv[1], "r") #lines = input_file.readlines() lines = sys.stdin.readlines() lines.pop(0) for line in lines: x1, y1, x2, y2, x3, y3, x4, y4 = tuple(map(float, line.split(' '))) if parallelism(x1, y1, x2, y2, x3, y3, x4, y4): print "YES" else: print "NO"
File "/tmp/tmphs_vctwq/tmpav1i9gmw.py", line 24 print "YES" ^^^^^^^^^^^ SyntaxError: Missing parentheses in call to 'print'. Did you mean print(...)?
s658823060
p00021
u542421762
1368260740
Python
Python
py
Runtime Error
0
0
527
import sys def parallelism(x1, y1, x2, y2, x3, y3, x4, y4): if x1 == x2: return x3 == x4 elif y1 == y2: return y3 == y4 else: return (y2 - y1) / (x2 - x1) == (y4 - y3) / (x4 - x3) #input_file = open(sys.argv[1], "r") #lines = input_file.readlines() lines = sys.stdin.readlines() lines.pop(0) for line in lines: x1, y1, x2, y2, x3, y3, x4, y4 = tuple(map(float, line.split(' '))) if parallelism(x1, y1, x2, y2, x3, y3, x4, y4): print "YES" else: print "NO"
File "/tmp/tmpt9w2g10j/tmpbp15ujh_.py", line 24 print "YES" ^^^^^^^^^^^ SyntaxError: Missing parentheses in call to 'print'. Did you mean print(...)?
s153698877
p00021
u542421762
1368278078
Python
Python
py
Runtime Error
0
0
527
import sys def parallelism(x1, y1, x2, y2, x3, y3, x4, y4): if x1 == x2: return x3 == x4 elif y1 == y2: return y3 == y4 else: return (y2 - y1) / (x2 - x1) == (y4 - y3) / (x4 - x3) #input_file = open(sys.argv[1], "r") #lines = input_file.readlines() lines = sys.stdin.readlines() lines.pop(0) for line in lines: x1, y1, x2, y2, x3, y3, x4, y4 = tuple(map(float, line.split(' '))) if parallelism(x1, y1, x2, y2, x3, y3, x4, y4): print "YES" else: print "NO"
File "/tmp/tmpe2v5zv8z/tmpshwkvosr.py", line 24 print "YES" ^^^^^^^^^^^ SyntaxError: Missing parentheses in call to 'print'. Did you mean print(...)?
s038439536
p00021
u542421762
1368278178
Python
Python
py
Runtime Error
0
0
552
import sys def parallelism(x1, y1, x2, y2, x3, y3, x4, y4): if x1 == x2 or x3 == x4: return x1 == x2 and x3 == x4 elif y1 == y2: return y3 == y4 else: return (y2 - y1) / (x2 - x1) == (y4 - y3) / (x4 - x3) #input_file = open(sys.argv[1], "r") #lines = input_file.readlines() lines = sys.stdin.readlines() lines.pop(0) for line in lines: x1, y1, x2, y2, x3, y3, x4, y4 = tuple(map(float, line.split(' '))) if parallelism(x1, y1, x2, y2, x3, y3, x4, y4): print "YES" else: print "NO"
File "/tmp/tmpi14q_c0q/tmpb4anggix.py", line 24 print "YES" ^^^^^^^^^^^ SyntaxError: Missing parentheses in call to 'print'. Did you mean print(...)?
s269586405
p00021
u542421762
1368278363
Python
Python
py
Runtime Error
0
0
554
import sys def parallelism(x1, y1, x2, y2, x3, y3, x4, y4): if x1 == x2 or x3 == x4: return x1 == x2 and x3 == x4 # elif y1 == y2: # return y3 == y4 else: return (y2 - y1) / (x2 - x1) == (y4 - y3) / (x4 - x3) #input_file = open(sys.argv[1], "r") #lines = input_file.readlines() lines = sys.stdin.readlines() lines.pop(0) for line in lines: x1, y1, x2, y2, x3, y3, x4, y4 = tuple(map(float, line.split(' '))) if parallelism(x1, y1, x2, y2, x3, y3, x4, y4): print "YES" else: print "NO"
File "/tmp/tmp1rf9vwc7/tmp60p5drdq.py", line 24 print "YES" ^^^^^^^^^^^ SyntaxError: Missing parentheses in call to 'print'. Did you mean print(...)?
s316476090
p00021
u542421762
1368278626
Python
Python
py
Runtime Error
0
0
558
import sys def parallelism(x1, y1, x2, y2, x3, y3, x4, y4): if x1 == x2 or x3 == x4: return x1 == x2 and x3 == x4 # elif y1 == y2: # return y3 == y4 else: return ((y2 - y1) / (x2 - x1)) == ((y4 - y3) / (x4 - x3)) #input_file = open(sys.argv[1], "r") #lines = input_file.readlines() lines = sys.stdin.readlines() lines.pop(0) for line in lines: x1, y1, x2, y2, x3, y3, x4, y4 = tuple(map(float, line.split(' '))) if parallelism(x1, y1, x2, y2, x3, y3, x4, y4): print "YES" else: print "NO"
File "/tmp/tmp33_qztrr/tmplfc3z40e.py", line 24 print "YES" ^^^^^^^^^^^ SyntaxError: Missing parentheses in call to 'print'. Did you mean print(...)?
s845839400
p00021
u542421762
1368278926
Python
Python
py
Runtime Error
0
0
581
import sys def parallelism(x1, y1, x2, y2, x3, y3, x4, y4): if x1 == x2 or x3 == x4: return x1 == x2 and x3 == x4 elif y1 == y2 or y3 == y4: return y1 == y2 and y3 == y4 else: return ((y2 - y1) / (x2 - x1)) == ((y4 - y3) / (x4 - x3)) #input_file = open(sys.argv[1], "r") #lines = input_file.readlines() lines = sys.stdin.readlines() lines.pop(0) for line in lines: x1, y1, x2, y2, x3, y3, x4, y4 = tuple(map(float, line.split(' '))) if parallelism(x1, y1, x2, y2, x3, y3, x4, y4): print "YES" else: print "NO"
File "/tmp/tmp6rb22x_y/tmp9rjqoe_p.py", line 24 print "YES" ^^^^^^^^^^^ SyntaxError: Missing parentheses in call to 'print'. Did you mean print(...)?
s778685939
p00021
u542421762
1368279748
Python
Python
py
Runtime Error
0
0
536
import sys def parallelism(x1, y1, x2, y2, x3, y3, x4, y4): if x1 - x2 == 0.0 or x3 - x4 == 0.0: return x1 - x2 == 0.0 and x3 - x4 == 0.0 # elif y1 == y2 or y3 == y4: # return y1 == y2 and y3 == y4 else: return ((y2 - y1) / (x2 - x1)) == ((y4 - y3) / (x4 - x3)) lines = sys.stdin.readlines() lines.pop(0) for line in lines: x1, y1, x2, y2, x3, y3, x4, y4 = tuple(map(float, line.split(' '))) if parallelism(x1, y1, x2, y2, x3, y3, x4, y4): print "YES" else: print "NO"
File "/tmp/tmp47cvawka/tmpus5wrrxs.py", line 20 print "YES" ^^^^^^^^^^^ SyntaxError: Missing parentheses in call to 'print'. Did you mean print(...)?
s380076980
p00021
u542421762
1368279825
Python
Python
py
Runtime Error
0
0
466
import sys def parallelism(x1, y1, x2, y2, x3, y3, x4, y4): if x2 - x1 == 0.0 or x4 - x3 == 0.0: return x2 - x1 == 0.0 and x4 - x3 == 0.0 else: return ((y2 - y1) / (x2 - x1)) == ((y4 - y3) / (x4 - x3)) lines = sys.stdin.readlines() lines.pop(0) for line in lines: x1, y1, x2, y2, x3, y3, x4, y4 = tuple(map(float, line.split(' '))) if parallelism(x1, y1, x2, y2, x3, y3, x4, y4): print "YES" else: print "NO"
File "/tmp/tmp7nq9ylwv/tmp6aeu6ok8.py", line 18 print "YES" ^^^^^^^^^^^ SyntaxError: Missing parentheses in call to 'print'. Did you mean print(...)?
s284733952
p00021
u350508326
1368464769
Python
Python
py
Runtime Error
0
0
355
def cal(x1,y1,x2,y2): t = y1 - y2 v = x1 - x2 return t/v if __name__ == "__main__": a = int(raw_input()) for i in range(a): x1,y1,x2,y2,x3,y3,x4,y4 = map(float,raw_input().split(' ')) m1 = cal(x1,y1,x2,y2) m2 = cal(x3,y3,x4,y4) if m1 == m2: print 'YES' else: print 'NO'
File "/tmp/tmptdactrr1/tmpiaeaa64h.py", line 14 print 'YES' ^^^^^^^^^^^ SyntaxError: Missing parentheses in call to 'print'. Did you mean print(...)?
s053016517
p00021
u350508326
1368464813
Python
Python
py
Runtime Error
0
0
355
def cal(x1,y1,x2,y2): t = y1 - y2 v = x1 - x2 return t/v if __name__ == "__main__": a = int(raw_input()) for i in range(a): x1,y1,x2,y2,x3,y3,x4,y4 = map(float,raw_input().split(' ')) m1 = cal(x1,y1,x2,y2) m2 = cal(x3,y3,x4,y4) if m1 == m2: print 'YES' else: print 'NO'
File "/tmp/tmpvaqwz322/tmpbqe09jju.py", line 14 print 'YES' ^^^^^^^^^^^ SyntaxError: Missing parentheses in call to 'print'. Did you mean print(...)?
s869430090
p00021
u350508326
1368465573
Python
Python
py
Runtime Error
0
0
355
def cal(x1,y1,x2,y2): t = y1 - y2 v = x1 - x2 return t/v if __name__ == "__main__": a = int(raw_input()) for i in range(a): x1,y1,x2,y2,x3,y3,x4,y4 = map(float,raw_input().split(' ')) m1 = cal(x1,y1,x2,y2) m2 = cal(x3,y3,x4,y4) if m1 == m2: print 'YES' else: print 'NO'
File "/tmp/tmpy62vbsbp/tmpm8j7qfaf.py", line 14 print 'YES' ^^^^^^^^^^^ SyntaxError: Missing parentheses in call to 'print'. Did you mean print(...)?
s992548162
p00021
u350508326
1368465962
Python
Python
py
Runtime Error
0
0
547
def cal(x1,y1,x2,y2): t = y1 - y2 v = x1 - x2 return t/v if __name__ == "__main__": a = int(raw_input()) for i in range(a): x1,y1,x2,y2,x3,y3,x4,y4 = map(float,raw_input().split(' ')) m1 = cal(x1,y1,x2,y2) m2 = cal(x3,y3,x4,y4) if (x1-x2) == 0 or (x3-x4) == 0: if (x1-x2) == 0 and (x3-x4) == 0: print 'YES' else: print 'NO' else: if m1 == m2: print 'YES' else: print 'NO'
File "/tmp/tmpdhfymrii/tmphmk3nf1i.py", line 15 print 'YES' ^^^^^^^^^^^ SyntaxError: Missing parentheses in call to 'print'. Did you mean print(...)?
s670443180
p00021
u866760195
1378310654
Python
Python
py
Runtime Error
0
0
641
n = input()+1 for v in range(1,n): (x1,y1,x2,y2,x3,y3,x4,y4)=map(int,raw_input().split()) if x2-x1==0 or x4-x3==0: if x2-x1==0 and x4-x3==0: print "YES" else: print "NO" elif y2-y1==0 or y4-y3==0: if y2-y1==0 and y4-y3==0: print "YES" else: print "NO" else: a = (y2-y1)/(x2-x1) b = (y4-y3)/(x4-x3) if a == b: print "YES" else: print "NO"
File "/tmp/tmpu8h4nm4p/tmpu66kookb.py", line 6 print "YES" ^^^^^^^^^^^ SyntaxError: Missing parentheses in call to 'print'. Did you mean print(...)?
s814776087
p00021
u866760195
1378311301
Python
Python
py
Runtime Error
0
0
785
n = input()+1 for v in range(1,n): (x1,y1,x2,y2,x3,y3,x4,y4)=map(int,raw_input().split()) if x2-x1==0 or x4-x3==0: if x2-x1==0 and x4-x3==0: print "YES" else: print "NO" elif y2-y1==0 or y4-y3==0: if y2-y1==0 and y4-y3==0: print "YES" else: print "NO" else: a = (y2-y1)/(x2-x1) b = (y4-y3)/(x4-x3) if a == b: print "YES" else: print "NO"
File "/tmp/tmplotk8cnl/tmpud1wrypc.py", line 6 print "YES" ^^^^^^^^^^^ SyntaxError: Missing parentheses in call to 'print'. Did you mean print(...)?
s931202117
p00021
u866760195
1378311465
Python
Python
py
Runtime Error
0
0
725
n = input()+1 for v in range(1,n): (x1,y1,x2,y2,x3,y3,x4,y4)=map(int,raw_input().split()) if x2-x1==0 or x4-x3==0: if x2-x1==0 and x4-x3==0: print "YES" else: print "NO" elif y2-y1==0 or y4-y3==0: if y2-y1==0 and y4-y3==0: print "YES" else: print "NO" else: if (y2-y1)/(x2-x1) == (y4-y3)/(x4-x3): print "YES" else: print "NO"
File "/tmp/tmpeye7cgrj/tmp2o6_bw9z.py", line 6 print "YES" ^^^^^^^^^^^ SyntaxError: Missing parentheses in call to 'print'. Did you mean print(...)?
s910009508
p00021
u866760195
1378312461
Python
Python
py
Runtime Error
0
0
585
n = input()+1 for v in range(1,n): x=map(float,raw_input().split()) if x[2]-x[0]==0 and x[6]-x[4]==0: print "YES" elif x[2]-x[0]!=0 and x[6]-x[4]==0: print "NO" elif x[2]-x[0]==0 and x[6]-x[4]!=0: print "NO" else: if (y[3]-y[1])/(x[2]-x[0]) == (y[7]-y[5])/(x[6]-x[4]): print "YES" else: print "NO"
File "/tmp/tmpb53f77vh/tmp0xy5bo36.py", line 5 print "YES" ^^^^^^^^^^^ SyntaxError: Missing parentheses in call to 'print'. Did you mean print(...)?
s567900746
p00021
u866760195
1378345664
Python
Python
py
Runtime Error
0
0
163
n = int(raw_input()) for i in range(n): d = [float(x) for x in raw_input().split()] if (d[2]-d[0])*(d[7]-d[5])==(d[3]-d[1])*(d[6]-d[4]): else: "NO"
File "/tmp/tmpho7ip5sj/tmpl95bwril.py", line 6 else: ^^^^ SyntaxError: invalid syntax
s757387542
p00021
u813384600
1379513192
Python
Python
py
Runtime Error
0
0
205
n = int(raw_input()) for i in range(n): x1,y1,x2,y2,x3,y3,x4,y4 = map(float, raw_input().split()) if (y2 - y1) / (x2 - x1) == (y4 - y3) / (x4 - x3): print 'YES' else: print 'NO'
File "/tmp/tmp04qyf6ug/tmpknlw3q96.py", line 5 print 'YES' ^^^^^^^^^^^ SyntaxError: Missing parentheses in call to 'print'. Did you mean print(...)?
s454588586
p00021
u523886269
1381386373
Python
Python
py
Runtime Error
0
0
668
#!/usr/bin/python def main(): numData = int(raw_input()) count = 0 while count < numData: line = raw_input() coords = map(float, line.strip().split()) result = isParallel(coords[0], coords[1], coords[2], coords[3], coords[4], coords[5], coords[6], coords[7]) if result : print "YES" else: print "NO" count += 1 def isParallel(x1, y1, x2, y2, x3, y3, x4, y4): x1 = int(x1 * 100000) y1 = int(y1 * 100000) x2 = int(x2 * 100000) y2 = int(y2 * 100000) x3 = int(x3 * 100000) y3 = int(y3 * 100000) x4 = int(x4 * 100000) y4 = int(y4 * 100000) if (x2 == x1): return x4 == x3 else: return (y2 - y1)/(x2 - x1) == (y4 - y3)/(x4 - x3) main()
File "/tmp/tmpwq6kzlod/tmpwka2vysg.py", line 12 print "YES" ^^^^^^^^^^^ SyntaxError: Missing parentheses in call to 'print'. Did you mean print(...)?
s950140969
p00021
u093607836
1382890369
Python
Python
py
Runtime Error
0
0
154
import sys for s in sys.stdin: x1,y1,x2,y2,x3,y3,x4,y4 = map(float,s.split()) a = (y2-y1)/(x2-x1) b = (y4-y3)/(x4-x3) print 'YES' if a == b else 'NO'
File "/tmp/tmprmb6j1zu/tmpx5xsnpye.py", line 7 print 'YES' if a == b else 'NO' ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ SyntaxError: Missing parentheses in call to 'print'. Did you mean print(...)?
s500374569
p00021
u093607836
1382890448
Python
Python
py
Runtime Error
0
0
167
for l in xrange(int(raw_input())): x1,y1,x2,y2,x3,y3,x4,y4 = map(float,raw_input().split()) a = (y2-y1)/(x2-x1) b = (y4-y3)/(x4-x3) print 'YES' if a == b else 'NO'
File "/tmp/tmpp0lhye0u/tmpgyzl89m6.py", line 5 print 'YES' if a == b else 'NO' ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ SyntaxError: Missing parentheses in call to 'print'. Did you mean print(...)?
s911505356
p00021
u093607836
1382890625
Python
Python
py
Runtime Error
0
0
167
for i in xrange(int(raw_input())): x1,y1,x2,y2,x3,y3,x4,y4 = map(float,raw_input().split()) a = (y2-y1)/(x2-x1) b = (y4-y3)/(x4-x3) print 'YES' if a == b else 'NO'
File "/tmp/tmp_pl_b6pm/tmpguddtjhp.py", line 5 print 'YES' if a == b else 'NO' ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ SyntaxError: Missing parentheses in call to 'print'. Did you mean print(...)?
s965218587
p00021
u633068244
1393381042
Python
Python
py
Runtime Error
0
0
214
n = int(raw_input()) for i in range(n): x1,y1,x2,y2,x3,y3,x4,y4 = map(float, raw_input().split()) a = (y2-y1)/(x2-x1) c = (y4-y3)/(x3-x1) if a == c: print "YES" else: print "NO"
File "/tmp/tmp4pj70srl/tmp165pcxy4.py", line 8 print "YES" ^^^^^^^^^^^ SyntaxError: Missing parentheses in call to 'print'. Did you mean print(...)?
s130110241
p00021
u633068244
1393381239
Python
Python
py
Runtime Error
0
0
213
n = int(raw_input()) for i in range(n): x1,y1,x2,y2,x3,y3,x4,y4 = map(float, raw_input().split()) a = (y2-y1)/(x2-x1) c = (y4-y3)/(x4-x3) if a == c: print "YES" else: print "NO"
File "/tmp/tmpi6jw21a3/tmpe2ws4j5q.py", line 7 print "YES" ^^^^^^^^^^^ SyntaxError: Missing parentheses in call to 'print'. Did you mean print(...)?
s736972595
p00021
u633068244
1393381380
Python
Python
py
Runtime Error
0
0
214
n = int(raw_input()) for i in range(n): x1,y1,x2,y2,x3,y3,x4,y4 = map(float, raw_input().split()) a = (y2-y1)/(x2-x1) c = (y4-y3)/(x4-x3) if a == c: print "YES" else: print "NO"
File "/tmp/tmprkgd558_/tmp1j08lbeu.py", line 8 print "YES" ^^^^^^^^^^^ SyntaxError: Missing parentheses in call to 'print'. Did you mean print(...)?
s500232284
p00021
u633068244
1393382982
Python
Python
py
Runtime Error
0
0
332
import math n = int(raw_input()) for i in range(n): x1,y1,x2,y2,x3,y3,x4,y4 = map(float, raw_input().split()) if x2-x1==0.0 and x4-x3==0.0: print "YES" elif y2-y1==0.0 and y4-y3==0.0: print "YES" elif fabs((y2-y1)*(x4-x3) - (y4-y3)*(x2-x1))<0.000001: print "YES" else: print "NO"
File "/tmp/tmpjcwy3yno/tmpvldckumo.py", line 7 print "YES" ^^^^^^^^^^^ SyntaxError: Missing parentheses in call to 'print'. Did you mean print(...)?
s117063072
p00021
u633068244
1393383069
Python
Python
py
Runtime Error
0
0
320
import math n = int(raw_input()) for i in range(n): x1,y1,x2,y2,x3,y3,x4,y4 = map(float, raw_input().split()) if x2-x1==0.0 and x4-x3==0.0: print "YES" elif y2-y1==0.0 and y4-y3==0.0: print "YES" elif (y2-y1)*(x4-x3)/(y4-y3)/(x2-x1)==1.0: print "YES" else: print "NO"
File "/tmp/tmp6900hmqm/tmp82nm6nsi.py", line 7 print "YES" ^^^^^^^^^^^ SyntaxError: Missing parentheses in call to 'print'. Did you mean print(...)?
s762854729
p00021
u912237403
1394222861
Python
Python
py
Runtime Error
0
0
149
import math N=range(int(raw_input())) for i in N: a,w,b,x,c,y,d,z=map(float, raw_input().split()) print ["NO","YES"][(w-x)*(c-d)=(y-z)*(a-b)]
File "/tmp/tmpynj3h_3l/tmpwiq54fcu.py", line 5 print ["NO","YES"][(w-x)*(c-d)=(y-z)*(a-b)] ^^^^^^^^^^^ SyntaxError: cannot assign to expression here. Maybe you meant '==' instead of '='?
s846519728
p00021
u193025715
1395414616
Python
Python
py
Runtime Error
0
0
276
n = int(raw_input()) ans = [] for i in range(n): marks = map(float, raw_input().split()) AB = (marks[1] - marks[3]) / (marks[0] - marks[2]) CD = (marks[5] - marks[7]) / (marks[4] - marks[6]) if AB == CD: ans.append('YES') else: ans.append('NO') for s in ans: print s
File "/tmp/tmplz88901n/tmp4frpk1j3.py", line 12 print s ^^^^^^^ SyntaxError: Missing parentheses in call to 'print'. Did you mean print(...)?
s363895917
p00021
u193025715
1395414713
Python
Python
py
Runtime Error
0
0
276
n = int(raw_input()) ans = [] for i in range(n): marks = map(float, raw_input().split()) AB = (marks[1] - marks[3]) / (marks[0] - marks[2]) CD = (marks[5] - marks[7]) / (marks[4] - marks[6]) if AB == CD: ans.append('YES') else: ans.append('NO') for s in ans: print s
File "/tmp/tmpzjc2h5yb/tmpx4_pf_o3.py", line 12 print s ^^^^^^^ SyntaxError: Missing parentheses in call to 'print'. Did you mean print(...)?