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
s251552355
p00021
u879226672
1424366175
Python
Python
py
Runtime Error
0
0
236
n = int(raw_input()) for k in range(n): x1, y1, x2, y2, x3, y3, x4, y4 = map(float,raw_input().split(' ')) ab = abs((y2-y1)/(x2-x1)) cd = abs((y4-y3)/(x4-x3)) if ab == cd: print 'YES' else: print 'NO'
File "/tmp/tmpx4w78x_n/tmp19xk3jb7.py", line 7 print 'YES' ^^^^^^^^^^^ SyntaxError: Missing parentheses in call to 'print'. Did you mean print(...)?
s225421207
p00021
u879226672
1424366204
Python
Python
py
Runtime Error
0
0
242
n = int(raw_input()) for k in range(n): x1, y1, x2, y2, x3, y3, x4, y4 = map(float,raw_input().split(' ')) ab = abs((y2-y1)/(x2-x1)) cd = abs((y4-y3)/(x4-x3)) if ab == cd: print 'YES' else: print 'NO' break
File "/tmp/tmp0c8ipwqs/tmpki0qr9sg.py", line 7 print 'YES' ^^^^^^^^^^^ SyntaxError: Missing parentheses in call to 'print'. Did you mean print(...)?
s204541300
p00021
u879226672
1424366245
Python
Python
py
Runtime Error
0
0
284
while True: n = int(raw_input()) for k in range(n): x1, y1, x2, y2, x3, y3, x4, y4 = map(float,raw_input().split(' ')) ab = abs((y2-y1)/(x2-x1)) cd = abs((y4-y3)/(x4-x3)) if ab == cd: print 'YES' else: print 'NO'
File "/tmp/tmp78jn81_6/tmp86r_m_ht.py", line 8 print 'YES' ^^^^^^^^^^^ SyntaxError: Missing parentheses in call to 'print'. Did you mean print(...)?
s066239038
p00021
u879226672
1424366283
Python
Python
py
Runtime Error
0
0
364
while True: try: n = int(raw_input()) for k in range(n): x1, y1, x2, y2, x3, y3, x4, y4 = map(float,raw_input().split(' ')) ab = abs((y2-y1)/(x2-x1)) cd = abs((y4-y3)/(x4-x3)) if ab == cd: print 'YES' else: print 'NO' except EOFError: break
File "/tmp/tmpb2s23xjo/tmp8sw05qur.py", line 9 print 'YES' ^^^^^^^^^^^ SyntaxError: Missing parentheses in call to 'print'. Did you mean print(...)?
s003988237
p00021
u879226672
1424366332
Python
Python
py
Runtime Error
0
0
376
import math while True: try: n = int(raw_input()) for k in range(n): x1, y1, x2, y2, x3, y3, x4, y4 = map(float,raw_input().split(' ')) ab = abs((y2-y1)/(x2-x1)) cd = abs((y4-y3)/(x4-x3)) if ab == cd: print 'YES' else: print 'NO' except EOFError: break
File "/tmp/tmphi9cx9ig/tmplhfpkg8m.py", line 10 print 'YES' ^^^^^^^^^^^ SyntaxError: Missing parentheses in call to 'print'. Did you mean print(...)?
s515820660
p00021
u879226672
1424366695
Python
Python
py
Runtime Error
0
0
369
while True: try: n = int(raw_input()) for k in range(n): x1, y1, x2, y2, x3, y3, x4, y4 = map(float,raw_input().split(' ')) ab = abs((y2-y1)/(x2-x1)) cd = abs((y4-y3)/(x4-x3)) if ab - cd<1e-10: print 'YES' else: print 'NO' except EOFError: break
File "/tmp/tmpq19404z3/tmpqaaal98g.py", line 9 print 'YES' ^^^^^^^^^^^ SyntaxError: Missing parentheses in call to 'print'. Did you mean print(...)?
s406426842
p00021
u879226672
1424367336
Python
Python
py
Runtime Error
0
0
556
while True: try: n = int(raw_input()) for k in range(n): x1, y1, x2, y2, x3, y3, x4, y4 = map(float,raw_input().split(' ')) if x2-x1<1e-10 and x4-x3<1e-10: print 'YES' elif x2-x1<1e-10 and x4-x3<1e-10: print 'NO' else: ab = abs((y2-y1)/(x2-x1)) cd = abs((y4-y3)/(x4-x3)) if ab - cd<1e-10: print 'YES' else: print 'NO' except EOFError: break
File "/tmp/tmpad210q5w/tmpgohom79f.py", line 7 print 'YES' ^^^^^^^^^^^ SyntaxError: Missing parentheses in call to 'print'. Did you mean print(...)?
s414473869
p00021
u744114948
1425906455
Python
Python3
py
Runtime Error
0
0
163
for _ in range(int(input())): a,b,c,d,e,f,g,h=map(float, input().split()) if (b-d)/(a-c) == (f-h)/(e-g): print("Yes") else: print("No")
Traceback (most recent call last): File "/tmp/tmpv_cpjld0/tmpll3559b2.py", line 1, in <module> for _ in range(int(input())): ^^^^^^^ EOFError: EOF when reading a line
s078046566
p00021
u744114948
1425906549
Python
Python3
py
Runtime Error
0
0
163
for _ in range(int(input())): a,b,c,d,e,f,g,h=map(float, input().split()) if (b-d)/(a-c) == (f-h)/(e-g): print("Yes") else: print("No")
Traceback (most recent call last): File "/tmp/tmp5zv4umkt/tmpe_cyg3uz.py", line 1, in <module> for _ in range(int(input())): ^^^^^^^ EOFError: EOF when reading a line
s786892004
p00021
u744114948
1425906587
Python
Python3
py
Runtime Error
0
0
167
n=int(input()) for _ in range(n): a,b,c,d,e,f,g,h=map(float, input().split()) if (b-d)/(a-c) == (f-h)/(e-g): print("Yes") else: print("No")
Traceback (most recent call last): File "/tmp/tmpa6xhdbwx/tmpno0aaife.py", line 1, in <module> n=int(input()) ^^^^^^^ EOFError: EOF when reading a line
s686491989
p00021
u744114948
1425906662
Python
Python3
py
Runtime Error
0
0
163
for _ in range(int(input())): a,b,c,d,e,f,g,h=map(float, input().split()) if (b-d)/(a-c) == (f-h)/(e-g): print("Yes") else: print("No")
Traceback (most recent call last): File "/tmp/tmpawmvflfi/tmpmtl8r8fw.py", line 1, in <module> for _ in range(int(input())): ^^^^^^^ EOFError: EOF when reading a line
s916787093
p00021
u744114948
1425906892
Python
Python3
py
Runtime Error
0
0
167
for _ in range(int(input())): a,b,c,d,e,f,g,h=map(float, input().split()) if ((b-d)/(a-c)) == ((f-h)/(e-g)): print("Yes") else: print("No")
Traceback (most recent call last): File "/tmp/tmpuz2xy52t/tmp1rpcb2fy.py", line 1, in <module> for _ in range(int(input())): ^^^^^^^ EOFError: EOF when reading a line
s518776208
p00021
u744114948
1425907468
Python
Python3
py
Runtime Error
0
0
278
for _ in range(int(input())): a,b,c,d,e,f,g,h=map(float, input().split()) try: i = (b-d)/(a-c) except: i = 90 try: j = (f-h)/(e-g) except: j = 90 if i == j: print("Yes") else: print("No") input()
Traceback (most recent call last): File "/tmp/tmppm7faqud/tmp5ytvby3t.py", line 1, in <module> for _ in range(int(input())): ^^^^^^^ EOFError: EOF when reading a line
s915487973
p00021
u744114948
1425908596
Python
Python3
py
Runtime Error
0
0
189
for _ in range(int(input())): a,b,c,d,e,f,g,h=map(float, input().split()) if abs((c-a)*(h-f) - (d-b)*(g-e)) < 1e-10: print("No") else: print("Yes") input()
Traceback (most recent call last): File "/tmp/tmp_0hjct27/tmp64y0nkys.py", line 1, in <module> for _ in range(int(input())): ^^^^^^^ EOFError: EOF when reading a line
s834937108
p00021
u621997536
1429239316
Python
Python3
py
Runtime Error
0
0
252
n = int(input()) for i in range(n): p = list(map(float, input().split())) if p[2] == p[1]: print("YES" if p[4] == p[6] else "NO") else: print("YES" if (p[3] - p[1]) / (p[2] - p[0]) == (p[7] - p[5]) / (p[6] - p[4]) else "NO")
Traceback (most recent call last): File "/tmp/tmpvhqwj1ms/tmpdhga4c6q.py", line 1, in <module> n = int(input()) ^^^^^^^ EOFError: EOF when reading a line
s444410142
p00021
u162387221
1431252628
Python
Python
py
Runtime Error
0
0
185
for i in range(input()): x1, y1, x2, y2, x3, y3, x4, y4 = map(float, raw_input().split()) if (y1-y2)/(x1-x2) == (y3-y4)/(x3-x4): print 'YES' else: print 'NO'
File "/tmp/tmpb4jbzdxg/tmpndb1blr2.py", line 4 print 'YES' ^^^^^^^^^^^ SyntaxError: Missing parentheses in call to 'print'. Did you mean print(...)?
s702106396
p00021
u162387221
1431252775
Python
Python
py
Runtime Error
0
0
185
for i in range(input()): x1, y1, x2, y2, x3, y3, x4, y4 = map(float, raw_input().split()) if (y1-y2)/(x1-x2) == (y3-y4)/(x3-x4): print 'YES' else: print 'NO'
File "/tmp/tmpjutq9vwx/tmpsry3kbgj.py", line 4 print 'YES' ^^^^^^^^^^^ SyntaxError: Missing parentheses in call to 'print'. Did you mean print(...)?
s069520845
p00021
u873482706
1434525177
Python
Python
py
Runtime Error
0
0
252
n = int(raw_input()) for i in range(n): x_a, y_a, x_b, y_b, x_c, y_c, x_d, y_d = map(float, raw_input().split()) AB = (y_b - y_a) / (x_b - x_a) CD = (y_d - y_c) / (x_d - x_c) if AB == CD: print 'YES' else: print 'NO'
File "/tmp/tmp3b5k8g4p/tmp567z_u44.py", line 7 print 'YES' ^^^^^^^^^^^ SyntaxError: Missing parentheses in call to 'print'. Did you mean print(...)?
s072525408
p00021
u379956761
1434882778
Python
Python3
py
Runtime Error
0
0
242
import sys n = int(input()) for s in sys.stdin: x1,y1,x2,y2,x3,y3,x4,y4 = map(float, s.strip().split()) angle1 = (y2-y1)/(x2-x1) angle2 = (y4-y3)/(x4-x3) if angle1 == angle2: print("YES") else: print("NO")
Traceback (most recent call last): File "/tmp/tmpv08zagug/tmpszlet3ng.py", line 3, in <module> n = int(input()) ^^^^^^^ EOFError: EOF when reading a line
s789052136
p00021
u379956761
1434882881
Python
Python3
py
Runtime Error
0
0
247
import sys n = int(input()) for s in range(n): x1,y1,x2,y2,x3,y3,x4,y4 = map(float, input().strip().split()) angle1 = (y2-y1)/(x2-x1) angle2 = (y4-y3)/(x4-x3) if angle1 == angle2: print("YES") else: print("NO")
Traceback (most recent call last): File "/tmp/tmpvytkkaea/tmpf11v0xoc.py", line 3, in <module> n = int(input()) ^^^^^^^ EOFError: EOF when reading a line
s494218199
p00021
u379956761
1434882947
Python
Python3
py
Runtime Error
0
0
275
import sys import math n = int(input()) for s in range(n): x1,y1,x2,y2,x3,y3,x4,y4 = map(float, input().strip().split()) angle1 = fabs(y2-y1)/fabs(x2-x1) angle2 = fabs(y4-y3)/fabs(x4-x3) if angle1 == angle2: print("YES") else: print("NO")
Traceback (most recent call last): File "/tmp/tmpeq7jycgi/tmpflha4w6t.py", line 4, in <module> n = int(input()) ^^^^^^^ EOFError: EOF when reading a line
s675063898
p00021
u379956761
1434883170
Python
Python3
py
Runtime Error
0
0
271
import sys import math n = int(input()) for s in range(n): x1,y1,x2,y2,x3,y3,x4,y4 = map(float, input().strip().split()) angle1 = abs(y2-y1)/abs(x2-x1) angle2 = abs(y4-y3)/abs(x4-x3) if angle1 == angle2: print("YES") else: print("NO")
Traceback (most recent call last): File "/tmp/tmpg1rxtsm1/tmp26s6m_xy.py", line 4, in <module> n = int(input()) ^^^^^^^ EOFError: EOF when reading a line
s123211286
p00021
u379956761
1434883393
Python
Python3
py
Runtime Error
0
0
281
import sys import math n = int(input()) for s in range(n): pos = list(map(float, input().split())) angle1 = abs(pos[3]-pos[1])/abs(pos[2]-pos[0]) angle2 = abs(pos[7]-pos[5])/abs(pos[6]-pos[4]) if angle1 == angle2: print("YES") else: print("NO")
Traceback (most recent call last): File "/tmp/tmphyaa0qsr/tmpd8o0w7bl.py", line 4, in <module> n = int(input()) ^^^^^^^ EOFError: EOF when reading a line
s673521679
p00021
u379956761
1434983103
Python
Python3
py
Runtime Error
0
0
493
N = input() for n in range(N): data = map(float,raw_input().split( )) slopes = [] for i in range(2): _x1 = data.pop(0) _y1 = data.pop(0) _x2 = data.pop(0) _y2 = data.pop(0) if _x1 != _x2: slopes.append((_y1 - _y2)/(_x1 - _x2)) if len(slopes) == 0: print "YES" elif len(slopes) == 1: print "NO" elif abs(slopes[0] - slopes[1]) < 1e-10: print "YES" else: print "NO"
File "/tmp/tmpz2w1c1ii/tmppcw_yix1.py", line 16 print "YES" ^^^^^^^^^^^ SyntaxError: Missing parentheses in call to 'print'. Did you mean print(...)?
s749471360
p00021
u379956761
1434983291
Python
Python3
py
Runtime Error
0
0
408
import sys import math n = int(input()) for s in range(n): pos = list(map(float, input().split())) if pos[0] == pos[2] or pos[4] == pos[6]: angle1 = 0 angle2 = 0 else: angle1 = (pos[3]-pos[1])/(pos[2]-pos[0]) angle2 = (pos[7]-pos[5])/(pos[6]-pos[4]) if abs(angle1 - angle2) <= 1e-10 and angle1 + angle0 != 0: print("YES") else: print("NO")
Traceback (most recent call last): File "/tmp/tmprennq5wd/tmp6b66fui4.py", line 4, in <module> n = int(input()) ^^^^^^^ EOFError: EOF when reading a line
s214592134
p00021
u379956761
1434983525
Python
Python3
py
Runtime Error
0
0
497
N = input() for n in range(N): data = map(float,raw_input().split( )) slopes = [] for i in range(2): _x1 = data.pop(0) _y1 = data.pop(0) _x2 = data.pop(0) _y2 = data.pop(0) if _x1 != _x2: slopes.append((_y1 - _y2)/(_x1 - _x2)) if len(slopes) == 0: print("YES") elif len(slopes) == 1: print("NO") elif abs(slopes[0] - slopes[1]) < 1e-10: print("YES") else: print("NO")
Traceback (most recent call last): File "/tmp/tmp8asb2mx9/tmp74hkq2jx.py", line 1, in <module> N = input() ^^^^^^^ EOFError: EOF when reading a line
s274253927
p00021
u379956761
1434983551
Python
Python3
py
Runtime Error
0
0
493
N = input() for n in range(N): data = map(float,input().split( )) slopes = [] for i in range(2): _x1 = data.pop(0) _y1 = data.pop(0) _x2 = data.pop(0) _y2 = data.pop(0) if _x1 != _x2: slopes.append((_y1 - _y2)/(_x1 - _x2)) if len(slopes) == 0: print("YES") elif len(slopes) == 1: print("NO") elif abs(slopes[0] - slopes[1]) < 1e-10: print("YES") else: print("NO")
Traceback (most recent call last): File "/tmp/tmpu7hn57g2/tmp2n9rq09s.py", line 1, in <module> N = input() ^^^^^^^ EOFError: EOF when reading a line
s153117428
p00021
u379956761
1434983569
Python
Python3
py
Runtime Error
0
0
499
N = input() for n in range(N): data = list(map(float,input().split( ))) slopes = [] for i in range(2): _x1 = data.pop(0) _y1 = data.pop(0) _x2 = data.pop(0) _y2 = data.pop(0) if _x1 != _x2: slopes.append((_y1 - _y2)/(_x1 - _x2)) if len(slopes) == 0: print("YES") elif len(slopes) == 1: print("NO") elif abs(slopes[0] - slopes[1]) < 1e-10: print("YES") else: print("NO")
Traceback (most recent call last): File "/tmp/tmp63076g47/tmp4ofltki0.py", line 1, in <module> N = input() ^^^^^^^ EOFError: EOF when reading a line
s281914888
p00021
u071010747
1445249058
Python
Python3
py
Runtime Error
0
0
322
# -*- coding:utf-8 -*- def main(): n=int(input()) for i in range(n): x1,y1,x2,y2,x3,y3,x4,y4=map(float,input().split()) a=(y2-y1)/(x2-x1) b=(y4-y3)/(x4-x3) if a==b: print("YES") else: print("NO") if __name__ == '__main__': main()
Traceback (most recent call last): File "/tmp/tmpak451hgr/tmpvtykjv5a.py", line 18, in <module> main() File "/tmp/tmpak451hgr/tmpvtykjv5a.py", line 4, in main n=int(input()) ^^^^^^^ EOFError: EOF when reading a line
s167489493
p00021
u071010747
1445249433
Python
Python3
py
Runtime Error
0
0
351
# -*- coding:utf-8 -*- def main(): for i in range(int(input())): x1,y1,x2,y2,x3,y3,x4,y4=map(float,input().split()) a=(y2-y1)/(x2-x1) b=(y4-y3)/(x4-x3) if abs((x2-x1)*(y4-y3)-(x4-x3)*(y2-y1))<1e-10: print("YES") else: print("NO") if __name__ == '__main__': main()
Traceback (most recent call last): File "/tmp/tmpaqbmmuud/tmpq_l_hfjv.py", line 16, in <module> main() File "/tmp/tmpaqbmmuud/tmpq_l_hfjv.py", line 4, in main for i in range(int(input())): ^^^^^^^ EOFError: EOF when reading a line
s418056471
p00021
u489809100
1446521876
Python
Python
py
Runtime Error
0
0
202
n = int(raw_input()) for i in xrange(n): x1,y1,x2,y2,x3,y3,x4,y4 = map(float,raw_input().split()) z1 = (y1 - y2) / (x1 - x2) z2 = (y3 - y4) / (x3 - x4) if z1 == z2: print "YES" else: print "NO"
File "/tmp/tmp0ws6usw_/tmpy6z24nv4.py", line 7 print "YES" ^^^^^^^^^^^ SyntaxError: Missing parentheses in call to 'print'. Did you mean print(...)?
s858112246
p00021
u489809100
1446521971
Python
Python
py
Runtime Error
0
0
204
n = int(raw_input()) for i in range(0, n): x1,y1,x2,y2,x3,y3,x4,y4 = map(float,raw_input().split()) z1 = (y1 - y2) / (x1 - x2) z2 = (y3 - y4) / (x3 - x4) if z1 == z2: print "YES" else: print "NO"
File "/tmp/tmpzy5kye25/tmpxyrnyhh7.py", line 7 print "YES" ^^^^^^^^^^^ SyntaxError: Missing parentheses in call to 'print'. Did you mean print(...)?
s435184025
p00021
u489809100
1446522018
Python
Python
py
Runtime Error
0
0
204
n = int(raw_input()) for i in range(0, n): x1,y1,x2,y2,x3,y3,x4,y4 = map(float,raw_input().split()) z1 = (y1 - y2) / (x1 - x2) z2 = (y3 - y4) / (x3 - x4) if z1 == z2: print "YES" else: print "NO"
File "/tmp/tmpyqwf_8w9/tmpogwtnhmn.py", line 7 print "YES" ^^^^^^^^^^^ SyntaxError: Missing parentheses in call to 'print'. Did you mean print(...)?
s710708063
p00021
u140201022
1446985626
Python
Python
py
Runtime Error
0
0
232
n=int(raw_input()) def parallel(x1,y1,x2,y2,x3,y3,x4,y4): print 'YES' if (y1-y2)/(x1-x2) == (y3-y4)/(x3-x4) else 'NO' while n: n-=1 l=map(float,raw_input().split()) parallel(l[0],l[1],l[2],l[3],l[4],l[5],l[6],l[7])
File "/tmp/tmphqqx5s6f/tmpfggznu8m.py", line 4 print 'YES' if (y1-y2)/(x1-x2) == (y3-y4)/(x3-x4) else 'NO' ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ SyntaxError: Missing parentheses in call to 'print'. Did you mean print(...)?
s455235250
p00021
u560214129
1450448443
Python
Python3
py
Runtime Error
0
0
318
import sys cases = int(input()) i = 0 while i < cases: for line in sys.stdin.readlines(): x1 , y1 , x2 , y2 , x3 , y3 , x4 , y4 = map(float,line.split()) m1 = (y2 - y1)/(x2 - x1) m2 = (y4 - y3)/(x4 - x3) if(m1 == m2): print("YES") else: print("NO") i += 1
Traceback (most recent call last): File "/tmp/tmpqx3ftbkt/tmpx1u98gk_.py", line 2, in <module> cases = int(input()) ^^^^^^^ EOFError: EOF when reading a line
s822945878
p00021
u560214129
1450449771
Python
Python3
py
Runtime Error
0
0
352
import sys cases = int(input()) i = 0 while i < cases: #for line in sys.stdin.readlines(): x1 , y1 , x2 , y2 , x3 , y3 , x4 , y4 = map(float,input().split()) dy1 = y2 - y1 dy2 = y4 - y3 dx1 = x2 - x1 dx2 = x4 - x3 if(dy1*dx2 == dy2*dx1): print("YES") else: print("NO") i += 1
File "/tmp/tmpeqqn2u33/tmpcnbgmv_8.py", line 15 i += 1 ^ IndentationError: unindent does not match any outer indentation level
s416967717
p00021
u560214129
1450449957
Python
Python3
py
Runtime Error
0
0
331
import sys cases = int(input()) i = 0 while i <= cases: #for line in sys.stdin.readlines(): x1 , y1 , x2 , y2 , x3 , y3 , x4 , y4 = map(float,input().split()) dy1 = y2 - y1 dy2 = y4 - y3 dx1 = x2 - x1 dx2 = x4 - x3 k=dy1*dx2 l=dy2*dx1 if( k==l ): print("YES") else: print("NO") i += 1
Traceback (most recent call last): File "/tmp/tmpubcm5yeu/tmpekfriea4.py", line 2, in <module> cases = int(input()) ^^^^^^^ EOFError: EOF when reading a line
s264397132
p00021
u560214129
1450449989
Python
Python3
py
Runtime Error
0
0
329
import sys cases = int(input()) i = 0 while i <= cases: #for line in sys.stdin.readlines(): x1 , y1 , x2 , y2 , x3 , y3 , x4 , y4 = map(float,input().split()) dy1 = y2 - y1 dy2 = y4 - y3 dx1 = x2 - x1 dx2 = x4 - x3 k=dy1*dx2 l=dy2*dx1 if(k==l): print("YES") else: print("NO") i += 1
Traceback (most recent call last): File "/tmp/tmpo1a7aofn/tmpggapxhkg.py", line 2, in <module> cases = int(input()) ^^^^^^^ EOFError: EOF when reading a line
s652859199
p00021
u560214129
1450450285
Python
Python3
py
Runtime Error
0
0
347
import sys cases = int(input()) i = 0 while i <= cases: #for line in sys.stdin.readlines(): x1 , y1 , x2 , y2 , x3 , y3 , x4 , y4 = map(float,input().split()) dy1 = y2 - y1 dy2 = y4 - y3 dx1 = x2 - x1 dx2 = x4 - x3 k=round(dy1*dx2,5) l=round(dy2*dx1,5) if(k==l): print("YES") else: print("NO") i += 1
Traceback (most recent call last): File "/tmp/tmperoc3lm6/tmppzp8alfn.py", line 2, in <module> cases = int(input()) ^^^^^^^ EOFError: EOF when reading a line
s592732196
p00021
u211905117
1450856120
Python
Python3
py
Runtime Error
0
0
195
N = int(input()) for _ in range(0, N) : x1,y1,x2,y2,x3,y3,x4,y4 = list(map(int, input().split())) if ((y2 - y1) / (x2 - x1) == (y4 - y3) / (x4 - x3)) : print("YES") else : print("NO")
File "/tmp/tmptx31t5cb/tmp3l4ly2hi.py", line 3 x1,y1,x2,y2,x3,y3,x4,y4 = list(map(int, input().split())) ^ IndentationError: expected an indented block after 'for' statement on line 2
s644668804
p00021
u211905117
1450856251
Python
Python3
py
Runtime Error
0
0
199
N = int(input()) for _ in range(0, N) : x1,y1,x2,y2,x3,y3,x4,y4 = list(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/tmp2q4lhux_/tmptevn1coi.py", line 1, in <module> N = int(input()) ^^^^^^^ EOFError: EOF when reading a line
s011357372
p00021
u211905117
1450856274
Python
Python3
py
Runtime Error
0
0
199
N = int(input()) for _ in range(0, N) : x1,y1,x2,y2,x3,y3,x4,y4 = list(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/tmpghugzk6d/tmpbytt4xcv.py", line 1, in <module> N = int(input()) ^^^^^^^ EOFError: EOF when reading a line
s963524934
p00021
u211905117
1450856290
Python
Python3
py
Runtime Error
0
0
199
N = int(input()) for i in range(0, N) : x1,y1,x2,y2,x3,y3,x4,y4 = list(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/tmptlvmihy1/tmp4qqks2_m.py", line 1, in <module> N = int(input()) ^^^^^^^ EOFError: EOF when reading a line
s325480458
p00021
u825618558
1451573794
Python
Python3
py
Runtime Error
0
0
531
import sys lines = sys.stdin.readlines() size = int(lines[0]) data = lines[1:len(lines)] for line in data: line = line.split(" ") inp = [] for i in line: inp.append(float(i)) x = [] x.append(inp[0]) x.append(inp[2]) x.append(inp[4]) x.append(inp[6]) y = [] y.append(inp[1]) y.append(inp[3]) y.append(inp[5]) y.append(inp[7]) tilt1 = (y[1]-y[0])/(x[1]-x[0]) tilt2 = (y[3]-y[2])/(x[3]-x[2]) if tilt1==tilt2: print ("YES") else: print ("NO")
Traceback (most recent call last): File "/tmp/tmpi6vempxj/tmphapz4tk_.py", line 4, in <module> size = int(lines[0]) ~~~~~^^^ IndexError: list index out of range
s768531072
p00021
u749493116
1452445381
Python
Python
py
Runtime Error
0
0
428
#!/usr/bin/env python # -*- coding: utf-8 -*- class point: def __init__(self, x, y): self.x = x self.y = y n = int(raw_input()) for i in range(n): xa, ya, xb, yb, xc, yc, xd, yd = map(float, raw_input().split(" ")) a = point(xa, ya) b = point(xb, yb) c = point(xc, yc) d = point(xd, yd) if (a.y - b.y)/(a.x - b.x) - (c.y - d.y)/(c.x - d.x) < 1e-9:print "YES" else:print "NO"
File "/tmp/tmpmbf76tpj/tmpwot7omhf.py", line 15 if (a.y - b.y)/(a.x - b.x) - (c.y - d.y)/(c.x - d.x) < 1e-9:print "YES" ^^^^^^^^^^^ SyntaxError: Missing parentheses in call to 'print'. Did you mean print(...)?
s935702599
p00021
u797673668
1452703326
Python
Python3
py
Runtime Error
0
0
177
n = int(input()) for _ in range(n): x1, y1, x2, y2, x3, y3, x4, y4 = map(float, input().split()) print('YES' if (x1 - x2) / (y1 - y2) == (x3 - x4) / (y3 - y4) else 'NO')
Traceback (most recent call last): File "/tmp/tmpmxmjojw0/tmp3jtaxnz2.py", line 1, in <module> n = int(input()) ^^^^^^^ EOFError: EOF when reading a line
s948559548
p00021
u777299405
1453619969
Python
Python3
py
Runtime Error
0
0
177
n = int(input()) for i in range(n): x1, y1, x2, y2, x3, y3, x4, y4 = map(float, input().split()) print("YES" if (x1 - x2) / (y1 - y2) == (x3 - x4) / (y3 - y4) else "NO")
Traceback (most recent call last): File "/tmp/tmp1ntvn1ki/tmptq_3hqgp.py", line 1, in <module> n = int(input()) ^^^^^^^ EOFError: EOF when reading a line
s387594570
p00021
u777299405
1453620105
Python
Python3
py
Runtime Error
0
0
187
n = int(input()) for i in range(n): x1, y1, x2, y2, x3, y3, x4, y4 = map(float, input().split()) print("YES" if abs((x1 - x2) / (y1 - y2)) == abs((x3 - x4) / (y3 - y4)) else "NO")
Traceback (most recent call last): File "/tmp/tmp0sa8w4dv/tmp1cc1505r.py", line 1, in <module> n = int(input()) ^^^^^^^ EOFError: EOF when reading a line
s294790697
p00021
u777299405
1453621927
Python
Python3
py
Runtime Error
0
0
290
n = int(input()) for i in range(n): x1, y1, x2, y2, x3, y3, x4, y4 = map(float, input().split()) x2 -= x1 y2 -= y1 x4 -= x3 y4 -= y3 if x2 == 0 or x4 == 0: print("YES" if x2 == x4 == 0 else "NO") else: print("YES" if x2 / y2 == x4 / y4 else "NO")
Traceback (most recent call last): File "/tmp/tmp4kdexbun/tmp9jqvn1b2.py", line 1, in <module> n = int(input()) ^^^^^^^ EOFError: EOF when reading a line
s241150214
p00021
u650459696
1458572881
Python
Python3
py
Runtime Error
0
0
192
for i in range(int(input())): s = list(map(float,input().split())) if (s[0] - s[2]) / (s[1] - s[3]) == (s[4] - s[6]) / (s[5] - s[7]): print('YES') else: print('NO')
Traceback (most recent call last): File "/tmp/tmpfhotraf8/tmpuigs0e72.py", line 1, in <module> for i in range(int(input())): ^^^^^^^ EOFError: EOF when reading a line
s765083054
p00021
u148101999
1459230067
Python
Python
py
Runtime Error
0
0
225
x = input() for i in xrange(x): grad1,grad2 = 0, 0 x1,y1,x2,y2,x3,y3,x4,y4 = map(float, raw_input().split()) grad1, grad2 = ((y1 - y2)/(x1 - x2)), ((y3 - y4)/(x3 - x4)) if grad1 == grad2: print "YES" else: print "NO"
File "/tmp/tmpzotm1tti/tmpul03pp2x.py", line 7 print "YES" ^^^^^^^^^^^ SyntaxError: Missing parentheses in call to 'print'. Did you mean print(...)?
s109257416
p00021
u148101999
1459231155
Python
Python
py
Runtime Error
0
0
219
for i in xrange(input()): grad1, grad2 = 0, 0 x1,y1,x2,y2,x3,y3,x4,y4=map(float,raw_input().split()) grad1, grad2 = (y1 - y2)*(x3 - x4) , (y3 - y4)*(x1 - x2) if grad1 - grad2 == 0: print "YES" else: print "NO"
File "/tmp/tmpl8my5auj/tmpj78hn57i.py", line 1 for i in xrange(input()): IndentationError: unexpected indent
s391565769
p00021
u130979865
1459946373
Python
Python
py
Runtime Error
0
0
454
# -*- coding: utf-8 -*- class Point_Class(): def __init__(self, x, y): self.x = x self.y = y def slope(p1, p2): return (p2.y-p1.y)/(p2.x-p1.x) n = int(raw_input()) for i in range(n): x1, y1, x2, y2, x3, y3, x4, y4 = map(float, raw_input().split()) p1 = Point_Class(x1, y1) p2 = Point_Class(x2, y2) p3 = Point_Class(x3, y3) p4 = Point_Class(x4, y4) print "YES" if slope(p1, p2) == slope(p3, p4) else "NO"
File "/tmp/tmpli4b5kzr/tmp5h997z4j.py", line 18 print "YES" if slope(p1, p2) == slope(p3, p4) else "NO" ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ SyntaxError: Missing parentheses in call to 'print'. Did you mean print(...)?
s251379144
p00021
u130979865
1459946456
Python
Python
py
Runtime Error
0
0
498
# -*- coding: utf-8 -*- import sys class Point_Class(): def __init__(self, x, y): self.x = x self.y = y def slope(p1, p2): return (p2.y-p1.y)/(p2.x-p1.x) if p2.x != p1.x else sys.intmax n = int(raw_input()) for i in range(n): x1, y1, x2, y2, x3, y3, x4, y4 = map(float, raw_input().split()) p1 = Point_Class(x1, y1) p2 = Point_Class(x2, y2) p3 = Point_Class(x3, y3) p4 = Point_Class(x4, y4) print "YES" if slope(p1, p2) == slope(p3, p4) else "NO"
File "/tmp/tmprmpmi83b/tmpdz9vsjmz.py", line 20 print "YES" if slope(p1, p2) == slope(p3, p4) else "NO" ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ SyntaxError: Missing parentheses in call to 'print'. Did you mean print(...)?
s911120481
p00021
u925992597
1460629495
Python
Python3
py
Runtime Error
0
0
749
class line(): def __init__(self): self.p={"x":0,"y":0} self.q={"x":0,"y":0} def setPoint(self,px,py,qx,qy): self.p["x"]=px self.p["y"]=py self.q["x"]=qx self.q["y"]=qy def getVector(self,rev=False): if(rev): return ((self.p["x"]-self.q["x"]),(self.p["y"]-self.q["y"])) else: return ((self.q["x"]-self.p["x"]),(self.q["y"]-self.p["y"])) def main(): l=line() m=line() for i in range(0,int(input())): (lambda x:(l.setPoint(*(x[0:4])),m.setPoint(*(x[4:8]))))(tuple(map(float,input().split(" ")))) if((l.getVector()==(0,0))or(m.getVector()==(0,0))): print("NO") elif((lambda l,m:(l[0]/m[0])==(l[1]/m[1]))(l.getVector(),m.getVector())): print("YES") else: print("NO") if __name__ == '__main__': main()
Traceback (most recent call last): File "/tmp/tmpe4si__g6/tmpe9a0_0m_.py", line 33, in <module> main() File "/tmp/tmpe4si__g6/tmpe9a0_0m_.py", line 22, in main for i in range(0,int(input())): ^^^^^^^ EOFError: EOF when reading a line
s074377718
p00021
u925992597
1460629673
Python
Python3
py
Runtime Error
0
0
749
class line(): def __init__(self): self.p={"x":0,"y":0} self.q={"x":0,"y":0} def setPoint(self,px,py,qx,qy): self.p["x"]=px self.p["y"]=py self.q["x"]=qx self.q["y"]=qy def getVector(self,rev=False): if(rev): return ((self.p["x"]-self.q["x"]),(self.p["y"]-self.q["y"])) else: return ((self.q["x"]-self.p["x"]),(self.q["y"]-self.p["y"])) def main(): l=line() m=line() for i in range(0,int(input())): (lambda x:(l.setPoint(*(x[0:4])),m.setPoint(*(x[4:8]))))(tuple(map(float,input().split(" ")))) if((l.getVector()==(0,0))or(m.getVector()==(0,0))): print("NO") elif((lambda l,m:(l[0]/m[0])==(l[1]/m[1]))(l.getVector(),m.getVector())): print("YES") else: print("NO") if __name__ == '__main__': main()
Traceback (most recent call last): File "/tmp/tmp59olsuoz/tmp5d5s1m0g.py", line 33, in <module> main() File "/tmp/tmp59olsuoz/tmp5d5s1m0g.py", line 22, in main for i in range(0,int(input())): ^^^^^^^ EOFError: EOF when reading a line
s925092183
p00021
u203261375
1467534227
Python
Python3
py
Runtime Error
0
0
187
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) == (y3-y4)/(x3-x4): print('YES') else: print('NO')
Traceback (most recent call last): File "/tmp/tmpg1jimpz7/tmp5k74tx3q.py", line 1, in <module> n = int(input()) ^^^^^^^ EOFError: EOF when reading a line
s246204797
p00021
u203261375
1467534510
Python
Python3
py
Runtime Error
0
0
319
n = int(input()) for i in range(n): x1,y1,x2,y2,x3,y3,x4,y4 = map(float, input().split()) if x1-x2 == 0 or x3-x4 ==0: if x1-x2 == 0 and x3-x4 ==0: print('YES') else: print('NO') if (y1-y2)/(x1-x2) == (y3-y4)/(x3-x4): print('YES') else: print('NO')
Traceback (most recent call last): File "/tmp/tmp4scpuasm/tmp6_k1nf35.py", line 1, in <module> n = int(input()) ^^^^^^^ EOFError: EOF when reading a line
s968213507
p00021
u582608581
1471405513
Python
Python3
py
Runtime Error
0
0
197
N = (eval(input())) for _ in range(N): x1, y1, x2, y2, x3, y3, x4, y4 = [eval(item) for item in input().split()] if (x1 - x2)/(y1 - y2) == (x3 - x4)/(y3 - y4): print('YES') else: print('NO')
Traceback (most recent call last): File "/tmp/tmp298b39ln/tmp7oi4w3fv.py", line 1, in <module> N = (eval(input())) ^^^^^^^ EOFError: EOF when reading a line
s853618302
p00021
u582608581
1471405520
Python
Python3
py
Runtime Error
0
0
197
N = (eval(input())) for _ in range(N): x1, y1, x2, y2, x3, y3, x4, y4 = [eval(item) for item in input().split()] if (x1 - x2)/(y1 - y2) == (x3 - x4)/(y3 - y4): print('YES') else: print('NO')
Traceback (most recent call last): File "/tmp/tmpuyxgqsna/tmpjpghts0v.py", line 1, in <module> N = (eval(input())) ^^^^^^^ EOFError: EOF when reading a line
s540000425
p00021
u582608581
1471406521
Python
Python3
py
Runtime Error
0
0
270
N = (eval(input())) for _ in range(N): x1, y1, x2, y2, x3, y3, x4, y4 = [eval(item) for item in input().split()] if (x1 == x2 and x3 == x4) or (y1 == y2 and y3 == y4): print('YES') elif (x1 - x2)/(y1 - y2) == (x3 - x4)/(y3 - y4): print('YES') else: print('NO')
Traceback (most recent call last): File "/tmp/tmpq8pos1wh/tmpvla4ph92.py", line 1, in <module> N = (eval(input())) ^^^^^^^ EOFError: EOF when reading a line
s624833265
p00021
u582608581
1471417097
Python
Python3
py
Runtime Error
0
0
268
N = eval(input()) for _ in range(N): x1, y1, x2, y2, x3, y3, x4, y4 = [eval(item) for item in input().split()] if (x1 == x2 and x3 == x4) or (y1 == y2 and y3 == y4): print('YES') elif (x1 - x2)/(y1 - y2) == (x3 - x4)/(y3 - y4): print('YES') else: print('NO')
Traceback (most recent call last): File "/tmp/tmpplavslgj/tmpx5hr3680.py", line 1, in <module> N = eval(input()) ^^^^^^^ EOFError: EOF when reading a line
s867472313
p00021
u379499530
1473053920
Python
Python
py
Runtime Error
0
0
188
import math n = input() for i in xrange(n): x1, y1, x2, y2, x3, y3, x4, y4 = map(float, raw_input().split()) print "YES" if (y1 - y2) / (x1 - x2) == (y3 - y4) / (x3 - x4) else "NO"
File "/tmp/tmpd55imkul/tmpt_z5pp85.py", line 5 print "YES" if (y1 - y2) / (x1 - x2) == (y3 - y4) / (x3 - x4) else "NO" ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ SyntaxError: Missing parentheses in call to 'print'. Did you mean print(...)?
s990033500
p00021
u379499530
1473053968
Python
Python
py
Runtime Error
0
0
176
n = input() for i in xrange(n): x1, y1, x2, y2, x3, y3, x4, y4 = map(float, raw_input().split()) print "YES" if (y1 - y2) / (x1 - x2) == (y3 - y4) / (x3 - x4) else "NO"
File "/tmp/tmpdh8l0tv5/tmpy75trl88.py", line 4 print "YES" if (y1 - y2) / (x1 - x2) == (y3 - y4) / (x3 - x4) else "NO" ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ SyntaxError: Missing parentheses in call to 'print'. Did you mean print(...)?
s462749416
p00021
u379499530
1473054033
Python
Python
py
Runtime Error
0
0
182
n = input() for i in xrange(n): x1, y1, x2, y2, x3, y3, x4, y4 = map(float, raw_input().split()) if (y1 - y2) / (x1 - x2) == (y3 - y4) / (x3 - x4): print "YES" else: "NO"
File "/tmp/tmp31utyklq/tmpsoqx1zbo.py", line 4 if (y1 - y2) / (x1 - x2) == (y3 - y4) / (x3 - x4): print "YES" ^^^^^^^^^^^ SyntaxError: Missing parentheses in call to 'print'. Did you mean print(...)?
s214655675
p00021
u058433718
1474069552
Python
Python3
py
Runtime Error
0
0
703
# ????????????????????°?????? import sys def is_parallel(x1, y1, x2, y2, x3, y3, x4, y4): a1 = (y2 - y1) / (x2 - x1) a2 = (y4 - y3) / (x4 - x3) return a1 == a2 def main(): n = int(sys.stdin.readline().strip()) for _ in range(n): data = sys.stdin.readline().strip().split(' ') x1 = float(data[0]) y1 = float(data[1]) x2 = float(data[2]) y2 = float(data[3]) x3 = float(data[4]) y3 = float(data[5]) x4 = float(data[6]) y4 = float(data[7]) if is_parallel(x1, y1, x2, y2, x3, y3, x4, y4): print('YES') else: print('NO') if __name__ == '__main__': main()
Traceback (most recent call last): File "/tmp/tmp1v6h5aen/tmpfmw29x86.py", line 30, in <module> main() File "/tmp/tmp1v6h5aen/tmpfmw29x86.py", line 11, in main n = int(sys.stdin.readline().strip()) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ValueError: invalid literal for int() with base 10: ''
s681134116
p00021
u058433718
1474070563
Python
Python3
py
Runtime Error
0
0
862
# ????????????????????°?????? import sys def is_parallel(x1, y1, x2, y2, x3, y3, x4, y4): d1x = x2 - x1 d1y = y2 - y1 d2x = x4 - x3 d2y = y4 - y3 if d1x != 0 and d2x != 0: a1 = d1y / d1x a2 = d2y / d2y return a1 == a2 if d1x == 0 and d2x == 0: return True return False def main(): n = int(sys.stdin.readline().strip()) for _ in range(n): data = sys.stdin.readline().strip().split(' ') x1 = float(data[0]) y1 = float(data[1]) x2 = float(data[2]) y2 = float(data[3]) x3 = float(data[4]) y3 = float(data[5]) x4 = float(data[6]) y4 = float(data[7]) if is_parallel(x1, y1, x2, y2, x3, y3, x4, y4): print('YES') else: print('NO') if __name__ == '__main__': main()
Traceback (most recent call last): File "/tmp/tmpwp3qd9yd/tmpj32e4td3.py", line 40, in <module> main() File "/tmp/tmpwp3qd9yd/tmpj32e4td3.py", line 21, in main n = int(sys.stdin.readline().strip()) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ValueError: invalid literal for int() with base 10: ''
s966651454
p00021
u372789658
1475864518
Python
Python3
py
Runtime Error
0
0
364
num=int(input()) for i in range (num): info=list(map(float,input().split())) if info[2]==info[0]: if info[6]==info[4]: print("YES") else: print("NO") else: if (info[3]-info[1])/(info[2]-info[0])==(info[7]-info[5])/(info[6]-info[4]): print("YES") else: print("NO")
Traceback (most recent call last): File "/tmp/tmpwlwft9y1/tmplox6newa.py", line 1, in <module> num=int(input()) ^^^^^^^ EOFError: EOF when reading a line
s431161027
p00021
u372789658
1475903091
Python
Python3
py
Runtime Error
0
0
364
num=int(input()) for i in range (num): info=list(map(float,input().split())) if info[2]==info[0]: if info[6]==info[4]: print("YES") else: print("NO") else: if (info[3]-info[1])/(info[2]-info[0])==(info[7]-info[5])/(info[6]-info[4]): print("YES") else: print("NO")
Traceback (most recent call last): File "/tmp/tmp_r31ls2d/tmp1iqm9jvg.py", line 1, in <module> num=int(input()) ^^^^^^^ EOFError: EOF when reading a line
s348378651
p00021
u372789658
1475903443
Python
Python3
py
Runtime Error
0
0
364
num=int(input()) for i in range (num): info=list(map(float,input().split())) if info[2]==info[0]: if info[6]==info[4]: print("YES") else: print("NO") else: if (info[3]-info[1])/(info[2]-info[0])==(info[7]-info[5])/(info[6]-info[4]): print("YES") else: print("NO")
Traceback (most recent call last): File "/tmp/tmpr46k7wo0/tmpca79j3qp.py", line 1, in <module> num=int(input()) ^^^^^^^ EOFError: EOF when reading a line
s970399047
p00021
u660912567
1480087558
Python
Python3
py
Runtime Error
0
0
182
for i in range(int(input())): l = list(map(float,input().split())) ab, cd = (l[2]-l[0])/(l[3]-l[1]), (l[6]-l[4])/(l[7]-l[5]) if ab==cd: print('YES') else: print('NO')
Traceback (most recent call last): File "/tmp/tmpdigvpy5s/tmpwfbpauc3.py", line 1, in <module> for i in range(int(input())): ^^^^^^^ EOFError: EOF when reading a line
s281284382
p00021
u660912567
1480088102
Python
Python3
py
Runtime Error
0
0
202
for i in range(int(input())): l = list(map(float,input().split())) a,b,c,d = l[2]-l[0],l[3]-l[1],l[6]-l[4],l[7]-l[5] if b==0 or d==0: next if a/b==c/d: print('YES') else: print('NO')
Traceback (most recent call last): File "/tmp/tmph90bn5ax/tmp3bmbaa1l.py", line 1, in <module> for i in range(int(input())): ^^^^^^^ EOFError: EOF when reading a line
s616910459
p00021
u123687446
1481292965
Python
Python3
py
Runtime Error
0
0
299
n = int(input()) for i in range(n): x1, y1, x2, y2, x3, y3, x4, y4 = list(map(float, input().split())) s = [x2-x1, y2-y1] t = [x4-x3, y4-y3] if not (s[0] or t[0]): print("YES") continue if s[1]/s[0] == t[1]/t[0]: print("YES") else: print("NO")
Traceback (most recent call last): File "/tmp/tmp1l7i8x3p/tmp3a9v7_sm.py", line 1, in <module> n = int(input()) ^^^^^^^ EOFError: EOF when reading a line
s828680570
p00021
u898097781
1481390867
Python
Python
py
Runtime Error
0
0
202
n = int(raw_input()) for i in range(n): x0, y0, x1, y1, x2, y2, x3, y3 = raw_input().split() if float(y1-y0)/(x1-x0) == float(y3-y2)/(x3-x2): print 'YES' else: print 'NO'
File "/tmp/tmpokqxtlx7/tmpt41xped5.py", line 5 print 'YES' ^^^^^^^^^^^ SyntaxError: Missing parentheses in call to 'print'. Did you mean print(...)?
s127716592
p00021
u898097781
1481390912
Python
Python
py
Runtime Error
0
0
214
n = int(raw_input()) for i in range(n): x0, y0, x1, y1, x2, y2, x3, y3 = map(float, raw_input().split()) if float(y1-y0)/(x1-x0) == float(y3-y2)/(x3-x2): print 'YES' else: print 'NO'
File "/tmp/tmp54ru3q5r/tmpswjne0er.py", line 5 print 'YES' ^^^^^^^^^^^ SyntaxError: Missing parentheses in call to 'print'. Did you mean print(...)?
s341119049
p00021
u898097781
1481390960
Python
Python
py
Runtime Error
0
0
217
n = int(raw_input()) for i in range(n): x0, y0, x1, y1, x2, y2, x3, y3 = map(float, raw_input().split(' ')) if float(y1-y0)/(x1-x0) == float(y3-y2)/(x3-x2): print 'YES' else: print 'NO'
File "/tmp/tmprzapypa6/tmpv2w1j8wu.py", line 5 print 'YES' ^^^^^^^^^^^ SyntaxError: Missing parentheses in call to 'print'. Did you mean print(...)?
s861523131
p00021
u661290476
1482221834
Python
Python3
py
Runtime Error
0
0
171
while True: try: a=[float(i) for i in input().split()] except: break print("YES" if (a[3]-a[1])/(a[2]-a[0])==(a[7]-a[5])/(a[6]-a[4]) else "NO")
s301493776
p00021
u661290476
1482222145
Python
Python3
py
Runtime Error
0
0
261
while True: try: a=[float(i) for i in input().split()] except: break dx1=a[2]-a[0] dy1=a[3]-a[1] dx2=a[6]-a[4] dy2=a[7]-a[5] if dx1==0 and dx2==0 or dy1/dx1==dy2/dx2: print("YES") else: print("NO")
s475221292
p00021
u661290476
1482222372
Python
Python3
py
Runtime Error
0
0
360
while True: try: a=[float(i) for i in input().split()] except: break dx1=a[2]-a[0] dy1=a[3]-a[1] dx2=a[6]-a[4] dy2=a[7]-a[5] if dx1==0 or dx2==0: if dx1==0 and dx2==0: print("YES") else: print("NO") elif dy1/dx1==dy2/dx2: print("YES") else: print("NO")
s816353689
p00021
u711765449
1484412917
Python
Python3
py
Runtime Error
0
0
316
# -*- coding:utf-8 -*- def check_para(x1,y1,x2,y2,x3,y3,x4,y4): k1 = (y2-y1)/(x2-x1) k2 = (y4-y3)/(x4-x3) if k1 == k2: print('YES') else: print('NO') n = int(input()) for i in range(n): x1,y1,x2,y2,x3,y3,x4,y4 = map(float,input().split()) check_para(x1,y1,x2,y2,x3,y3,x4,y4)
Traceback (most recent call last): File "/tmp/tmpop340i88/tmp1sx32jjj.py", line 10, in <module> n = int(input()) ^^^^^^^ EOFError: EOF when reading a line
s594111180
p00021
u711765449
1484413603
Python
Python3
py
Runtime Error
0
0
325
# -*- coding:utf-8 -*- def check_para(x1,y1,x2,y2,x3,y3,x4,y4): k1 = (y2-y1)/(x2-x1) k2 = (y4-y3)/(x4-x3) if abs(k1-k2) < 1e-10: print('YES') else: print('NO') n = int(input()) for i in range(n): x1,y1,x2,y2,x3,y3,x4,y4 = map(float,input().split()) check_para(x1,y1,x2,y2,x3,y3,x4,y4)
Traceback (most recent call last): File "/tmp/tmpcaj9fe55/tmpa3n0xcg9.py", line 10, in <module> n = int(input()) ^^^^^^^ EOFError: EOF when reading a line
s517799363
p00021
u078042885
1485354245
Python
Python3
py
Runtime Error
0
0
152
for _ in range(int(input())): ax, ay, bx, by, cx, cy, dx, dy = map(float, input().split()) print(['NO','YES'][(by-ay)/(bx-ax)==(dy-cy)/(dx-cx)])
Traceback (most recent call last): File "/tmp/tmpjhr5_9_b/tmp_igwt3qw.py", line 1, in <module> for _ in range(int(input())): ^^^^^^^ EOFError: EOF when reading a line
s883878207
p00021
u252414452
1486559383
Python
Python
py
Runtime Error
0
0
343
def to_f(e): return float(e) n = int(raw_input().rstrip()) for i in range(n): line = raw_input().rstrip() l = map(to_f, line.split(" ")) x1 = l[0] y1 = l[1] x2 = l[2] y2 = l[3] x3 = l[4] y3 = l[5] x4 = l[6] y4 = l[7] m1 = (y2-y1)/(x2-x1) m2 = (y4-y3)/(x4-x3) if m1 == m2: print "YES" else: print "NO"
File "/tmp/tmp2nsy1t3j/tmp0y_g73_8.py", line 20 print "YES" ^^^^^^^^^^^ SyntaxError: Missing parentheses in call to 'print'. Did you mean print(...)?
s915884284
p00021
u252414452
1486559413
Python
Python
py
Runtime Error
0
0
343
def to_f(e): return float(e) n = int(raw_input().rstrip()) for i in range(n): line = raw_input().rstrip() l = map(to_f, line.split(" ")) x1 = l[0] y1 = l[1] x2 = l[2] y2 = l[3] x3 = l[4] y3 = l[5] x4 = l[6] y4 = l[7] m1 = (y2-y1)/(x2-x1) m2 = (y4-y3)/(x4-x3) if m1 == m2: print "YES" else: print "NO"
File "/tmp/tmpoxspzcq5/tmphi2nrl72.py", line 20 print "YES" ^^^^^^^^^^^ SyntaxError: Missing parentheses in call to 'print'. Did you mean print(...)?
s621090086
p00021
u179694829
1490057727
Python
Python3
py
Runtime Error
0
0
235
n = int(input()) for i in range(n): line = list(map(float,input().split())) AB = (line[3] - line[1]) / (line[2] - line[0]) CD = (line[7] - line[5]) / (line[6] - line[4]) if round(AB - CD,8) == 0: print("YES") else: print("NO")
Traceback (most recent call last): File "/tmp/tmpl5f8tpu8/tmpxjjcsa4k.py", line 1, in <module> n = int(input()) ^^^^^^^ EOFError: EOF when reading a line
s457918935
p00021
u179694829
1490057796
Python
Python3
py
Runtime Error
0
0
235
n = int(input()) for i in range(n): line = list(map(float,input().split())) AB = (line[3] - line[1]) / (line[2] - line[0]) CD = (line[7] - line[5]) / (line[6] - line[4]) if round(AB - CD,8) == 0: print("YES") else: print("NO")
Traceback (most recent call last): File "/tmp/tmp1ck93trf/tmppi91x0j1.py", line 1, in <module> n = int(input()) ^^^^^^^ EOFError: EOF when reading a line
s380313361
p00021
u179694829
1490058222
Python
Python3
py
Runtime Error
0
0
365
n = int(input()) for i in range(n): line = list(map(float,input().split())) if round(line[2] - line[0], 2) == 0: if round(line[6] - line[4], 2) == 0: print("YES") else: print("NO") else: AB = (line[3] - line[1]) / (line[2] - line[0]) CD = (line[7] - line[5]) / (line[6] - line[4]) if round(AB - CD, 8) == 0: print("YES") else: print("NO")
Traceback (most recent call last): File "/tmp/tmpt_t861se/tmpwxi725v4.py", line 1, in <module> n = int(input()) ^^^^^^^ EOFError: EOF when reading a line
s020375480
p00021
u179694829
1490058325
Python
Python3
py
Runtime Error
0
0
365
n = int(input()) for i in range(n): line = list(map(float,input().split())) if round(line[2] - line[0], 2) == 0: if round(line[6] - line[4], 2) == 0: print("YES") else: print("NO") else: AB = (line[3] - line[1]) / (line[2] - line[0]) CD = (line[7] - line[5]) / (line[6] - line[4]) if round(AB - CD, 8) == 0: print("YES") else: print("NO")
Traceback (most recent call last): File "/tmp/tmp7e2e6lxb/tmp_nq2kv2y.py", line 1, in <module> n = int(input()) ^^^^^^^ EOFError: EOF when reading a line
s696703158
p00021
u179694829
1490075073
Python
Python3
py
Runtime Error
0
0
365
from fractions import Fraction def sroap(x1,y1,x2,y2): if x2 - x1 == 0: return float("inf") else: return Fraction(y2 - y1,x2 - x1) N = int(input()) for n in range(N): Ax,Ay,Bx,By,Cx,Cy,Dx,Dy = map(lambda x: round(x * 10 ** 5),(map(float,input().split()))) if sroap(Ax,Ay,Bx,By) == sroap(Cx,Cy,Dx,Dy): ????????????print("YES") else: print("NO")
File "/tmp/tmpcewdo1ib/tmprlfm_sl8.py", line 12 ????????????print("YES") TabError: inconsistent use of tabs and spaces in indentation
s447210616
p00021
u073709667
1490779671
Python
Python3
py
Runtime Error
0
0
180
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/tmp5cv7mu1f/tmpnoe4tz57.py", line 1, in <module> n=int(input()) ^^^^^^^ EOFError: EOF when reading a line
s652594347
p00021
u073709667
1490779695
Python
Python3
py
Runtime Error
0
0
180
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/tmpzchbx0s6/tmpskayf0oh.py", line 1, in <module> n=int(input()) ^^^^^^^ EOFError: EOF when reading a line
s125547760
p00021
u868716420
1493850674
Python
Python3
py
Runtime Error
0
0
222
for _ in range(int(input())) : x1, y1, x2, y2, x3, y3, x4, y4 = [float(__) for __ in input().split()] a, b = ((y2 - y1) / (x2 - x1)), ((y4 - y3) / (x4 - x3)) if a == b : print('YES') else : print('NO')
Traceback (most recent call last): File "/tmp/tmp9unkd8l1/tmpkbllm8dp.py", line 1, in <module> for _ in range(int(input())) : ^^^^^^^ EOFError: EOF when reading a line
s933695897
p00021
u618637847
1494900900
Python
Python3
py
Runtime Error
0
0
264
import mth num = int(input()) for i in range(num): x1, y1, x2, y2, x3, y3, x4, y4 = map(float, input().split(' ')) aaa = (y1 - y2) * (x3 - x4) bbb = (y3 - y4) * (x1 - x2) if abs(aaa - bbb) <= 0: print('YES') else: print('NO')
Traceback (most recent call last): File "/tmp/tmpt_64cayj/tmpsyj17gvd.py", line 2, in <module> import mth ModuleNotFoundError: No module named 'mth'
s650280416
p00021
u362104929
1496399040
Python
Python3
py
Runtime Error
0
0
218
n = int(input()) for _ in range(n): ax, ay, bx, by, cx, cy, dx, dy = map(float, input().split()) a1 = (ay-by)/(ax-bx) a2 = (cy-dy)/(cy-dy) if a1 == a2: print("YES") else: print("NO")
Traceback (most recent call last): File "/tmp/tmpgmdd7gjz/tmpl9rr2evt.py", line 1, in <module> n = int(input()) ^^^^^^^ EOFError: EOF when reading a line
s944499272
p00021
u362104929
1496399192
Python
Python3
py
Runtime Error
0
0
218
n = int(input()) for _ in range(n): ax, ay, bx, by, cx, cy, dx, dy = map(float, input().split()) a1 = (ay-by)/(ax-bx) a2 = (cy-dy)/(cy-dy) if a1 == a2: print("YES") else: print("NO")
Traceback (most recent call last): File "/tmp/tmp9r_cnmdd/tmpkg4kyam3.py", line 1, in <module> n = int(input()) ^^^^^^^ EOFError: EOF when reading a line
s255871746
p00021
u362104929
1496399427
Python
Python3
py
Runtime Error
0
0
259
n = int(input()) ans = [] for _ in range(n): ax, ay, bx, by, cx, cy, dx, dy = map(float, input().split()) a1 = (ay-by)/(ax-bx) a2 = (cy-dy)/(cy-dy) if a1 == a2: ans.append("YES") else: ans.append("NO") print(*ans, sep="\n")
Traceback (most recent call last): File "/tmp/tmpiyqetee3/tmps264n84i.py", line 1, in <module> n = int(input()) ^^^^^^^ EOFError: EOF when reading a line
s221498235
p00021
u362104929
1496399551
Python
Python3
py
Runtime Error
0
0
271
n = int(input()) ans = [] for _ in range(n): ax, ay, bx, by, cx, cy, dx, dy = map(float, input().split()) a1 = (ay - by) / (ax - bx) a2 = (cy - dy) / (cy - dy) if a1 == a2: ans.append("YES") else: ans.append("NO") print(*ans, sep="\n")
Traceback (most recent call last): File "/tmp/tmp3fecdie8/tmpyxn0eosm.py", line 1, in <module> n = int(input()) ^^^^^^^ EOFError: EOF when reading a line
s355783254
p00021
u362104929
1496399630
Python
Python3
py
Runtime Error
0
0
271
n = int(input()) ans = [] for _ in range(n): ax, ay, bx, by, cx, cy, dx, dy = map(float, input().split()) a1 = (ay - by) / (ax - bx) a2 = (cy - dy) / (cx - dx) if a1 == a2: ans.append("YES") else: ans.append("NO") print(*ans, sep="\n")
Traceback (most recent call last): File "/tmp/tmprebyhcca/tmpn5rmdkwg.py", line 1, in <module> n = int(input()) ^^^^^^^ EOFError: EOF when reading a line
s269541586
p00021
u362104929
1496402164
Python
Python3
py
Runtime Error
0
0
837
from fractions import Fraction def parallelism(x1, y1, x2, y2, x3, y3, x4, y4): a1 = Fraction((y2-y1), (x2-x1)) if (x2-x1) != 0 else float("inf") a2 = Fraction((y4-y3), (x4-x3)) if (x4-x3) != 0 else float("inf") if a1 == a2: return "YES" else: return "NO" if __name__ == "__main__": assert parallelism(0.0, 0.0, 1.0, 1.0, 1.0, 0.0, 2.0, 1.0) == "YES", "sample1" assert parallelism(3.0, 2.0, 9.0, 6.0, 13.0, 5.0, 7.0, 9.0) == "NO", "sample2" assert parallelism(3.0, 2.0, 9.0, 2.0, 13.0, 5.0, 7.0, 5.0) == "YES", "horizontal line" assert parallelism(3.0, 2.0, 3.0, 6.0, 13.0, 5.0, 13.0, 9.0) == "YES", "vertical line" n = int(input()) for _ in range(n): x1, y1, x2, y2, x3, y3, x4, y4 = map(float, input().split()) print(parallelism(x1, y1, x2, y2, x3, y3, x4, y4))
Traceback (most recent call last): File "/tmp/tmpthc9s8sg/tmphzm4sqkh.py", line 11, in <module> assert parallelism(0.0, 0.0, 1.0, 1.0, 1.0, 0.0, 2.0, 1.0) == "YES", "sample1" ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/tmp/tmpthc9s8sg/tmphzm4sqkh.py", line 3, in parallelism a1 = Fraction((y2-y1), (x2-x1)) if (x2-x1) != 0 else float("inf") ^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/root/miniconda3/envs/sandbox-runtime/lib/python3.11/fractions.py", line 153, in __new__ raise TypeError("both arguments should be " TypeError: both arguments should be Rational instances
s005388826
p00021
u957840591
1497489094
Python
Python3
py
Runtime Error
0
0
376
from numpy import * ABs=[] CDs=[] n = int(input()) for i in range(n): x_1, y_1, x_2, y_2, x_3, y_3, x_4, y_4, = map(float, input().split()) AB = array([x_2 - x_1, y_2 - y_1]) CD = array([x_4 - x_3, y_4 - y_3]) ABs.append(AB) CDs.append(CD) for i in range(n): if linalg.norm(cross(ABs[i],CDs[i]))==0.0: print("YES") else: print("NO")
Traceback (most recent call last): File "/tmp/tmpykd65ehs/tmpkx5a71z_.py", line 4, in <module> n = int(input()) ^^^^^^^ EOFError: EOF when reading a line