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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
s005737693 | p00003 | u282635979 | 1362747853 | Python | Python | py | Runtime Error | 0 | 0 | 188 | a = int(input())
b = 1
while True:
if b < a+1:
x = map(int,input().split(' '))
x.sort()
if a*2 + b*2 = c*2:
print('YES')
else:
print('NO')
b += 1
continue
else:
break | File "/tmp/tmpfxpblmd_/tmpyo2eqb4z.py", line 7
if a*2 + b*2 = c*2:
^^^^^^^^^
SyntaxError: cannot assign to expression here. Maybe you meant '==' instead of '='?
| |
s340028120 | p00003 | u282635979 | 1362748021 | Python | Python | py | Runtime Error | 0 | 0 | 197 | a = int(input())
b = 1
while True:
if b < a+1:
x = map(int,input().split(' '))
x.sort()
if x[0]*2 + x[1]*2 = x[2]*2:
print('YES')
else:
print('NO')
b += 1
continue
else:
break | File "/tmp/tmp9z5o0zmm/tmp9vugestz.py", line 7
if x[0]*2 + x[1]*2 = x[2]*2:
^^^^^^^^^^^^^^^
SyntaxError: cannot assign to expression here. Maybe you meant '==' instead of '='?
| |
s915486742 | p00003 | u282635979 | 1362748190 | Python | Python | py | Runtime Error | 0 | 0 | 205 | a = int(input())
b = int(1)
while True:
if b < a+1:
x = map(int,input().split(' '))
x.sort()
if x[0]**2 + x[1]**2 = x[2]**2:
print('YES')
else:
print('NO')
b += 1
continue
else:
break | File "/tmp/tmp1ufm7o4j/tmpbnk1nu0s.py", line 7
if x[0]**2 + x[1]**2 = x[2]**2:
^^^^^^^^^^^^^^^^^
SyntaxError: cannot assign to expression here. Maybe you meant '==' instead of '='?
| |
s593035524 | p00003 | u282635979 | 1362748241 | Python | Python | py | Runtime Error | 0 | 0 | 206 | a = int(input())
b = int(1)
while True:
if b < a+1:
x = map(int,input().split(' '))
x.sort()
if x[0]**2 + x[1]**2 == x[2]**2:
print('YES')
else:
print('NO')
b += 1
continue
else:
break | Traceback (most recent call last):
File "/tmp/tmpkne33oo0/tmp2zecur_u.py", line 1, in <module>
a = int(input())
^^^^^^^
EOFError: EOF when reading a line
| |
s808369827 | p00003 | u743065194 | 1362999274 | Python | Python | py | Runtime Error | 0 | 0 | 146 | n=input()
for i in range(n):
x=[input(),input(),input()]
x.sort()
if x[0]**2+x[1]**2==x[2]**2: print("YES")
else: print("NO") | Traceback (most recent call last):
File "/tmp/tmp8p8e59_h/tmpkzlwnado.py", line 1, in <module>
n=input()
^^^^^^^
EOFError: EOF when reading a line
| |
s249194620 | p00003 | u093607836 | 1369111221 | Python | Python | py | Runtime Error | 0 | 0 | 199 | while True:
try:
list = [int(item) for item in raw_input().split()]
list.sort()
if list[0] ** 2 + list[1] ** 2 == list[2] ** 2 :
print 'YES'
else :
print 'NO'
except EOFError:
break | File "/tmp/tmp9do8ui99/tmp7ebn1opu.py", line 6
print 'YES'
^^^^^^^^^^^
SyntaxError: Missing parentheses in call to 'print'. Did you mean print(...)?
| |
s823400533 | p00003 | u511257811 | 1381938742 | Python | Python | py | Runtime Error | 0 | 0 | 222 | import sys
for lineCnt, line in enumerate(sys.stdin):
if lineCount == 0: continue
a, b, c = map(int, line.rstrip('\n').split(' '))
if a+b>c and b+c>a and c+a>b:
print 'YES'
else:
print 'NO' | File "/tmp/tmpbnsllc86/tmpa52g9rv5.py", line 7
print 'YES'
^^^^^^^^^^^
SyntaxError: Missing parentheses in call to 'print'. Did you mean print(...)?
| |
s726325488 | p00003 | u511257811 | 1381939759 | Python | Python | py | Runtime Error | 0 | 0 | 220 | import sys
for lineCount, line in enumerate(sys.stdin):
if lineCount == 0:
continue
a, b, c = sorted(map(int, line.split(' ')))
if a**2 + b**2 = c**2:
print 'YES'
else:
print 'NO' | File "/tmp/tmp9nbdz4l7/tmpqxedx0_o.py", line 7
if a**2 + b**2 = c**2:
^^^^^^^^^^^
SyntaxError: cannot assign to expression here. Maybe you meant '==' instead of '='?
| |
s654990728 | p00003 | u146816547 | 1383319606 | Python | Python | py | Runtime Error | 0 | 0 | 296 | a = int,raw_input()
for i in range(0,a):
x, y, z = map(int,raw_input().split())
if(x > y > z or x > z > y and x*x == y*y + z*z):
print 'YES'
elif(y > x > z or y > z > x and y*y == x*x + z*z):
print 'YES'
elif(z > x > y or z > y > z and z*z == x*x + y*y):
print 'YES'
else:
print 'NO' | File "/tmp/tmpr8cor521/tmpktgazv7b.py", line 5
print 'YES'
^^^^^^^^^^^
SyntaxError: Missing parentheses in call to 'print'. Did you mean print(...)?
| |
s955452077 | p00003 | u180584272 | 1384079906 | Python | Python | py | Runtime Error | 0 | 0 | 171 | timel = int(raw_input())
for gomi in xrange(timel):
a,b,c = map(lambda x: int(x)**2, raw_input().split())
if a+b==c or b+c==a or c+a==b:
print "YES"
else
print "NO" | File "/tmp/tmpgipgxgw5/tmp23wz_yt9.py", line 5
print "YES"
^^^^^^^^^^^
SyntaxError: Missing parentheses in call to 'print'. Did you mean print(...)?
| |
s269619396 | p00003 | u912237403 | 1396965010 | Python | Python | py | Runtime Error | 0 | 0 | 104 | for n in range(input()):
a,b,c=sorted(map(int,raw_input().split()))
print ["YES","NO"][c*c-a*a-b*b] | Traceback (most recent call last):
File "/tmp/tmpwc5er_ax/tmp11q31e_7.py", line 1, in <module>
for n in range(input()):
^^^^^^^
EOFError: EOF when reading a line
| |
s492213940 | p00003 | u436634575 | 1400909991 | Python | Python3 | py | Runtime Error | 0 | 0 | 164 | while True:
try:
line = input()
except:
break
a, b, c = map(int, line.strip().split())
print('YES' if a**2 + b**2 == c**2 else 'NO') | ||
s729110277 | p00003 | u436634575 | 1400910055 | Python | Python3 | py | Runtime Error | 0 | 0 | 128 | n = input()
for i in range(n):
a, b, c = map(int, input().strip().split())
print('YES' if a**2 + b**2 == c**2 else 'NO') | Traceback (most recent call last):
File "/tmp/tmp51x0nwgf/tmpb8m7bg56.py", line 1, in <module>
n = input()
^^^^^^^
EOFError: EOF when reading a line
| |
s427695335 | p00003 | u525640557 | 1402382765 | Python | Python | py | Runtime Error | 0 | 0 | 115 | list=[a,b,c]
list.sort()
A=list[0]
B=list[1]
C=list[2]
if C**2==A**2+B**2:
print "YES"
else :
print "NO" | File "/tmp/tmpftnjs8ln/tmpvwbbo0e_.py", line 10
print "YES"
^^^^^^^^^^^
SyntaxError: Missing parentheses in call to 'print'. Did you mean print(...)?
| |
s187646341 | p00004 | u978863922 | 1540835216 | Python | Python3 | py | Runtime Error | 0 | 0 | 196 | (a,b,c,d,e,f) = map(int,input().split())
g = (a * e) - (b * d)
ans1= "{0:.3f}".format((( e * c) + ( -b * f)) / g)
ans2= "{0:.3f}".format(((-d * c) + ( a * f)) / g)
print (ans1,ans2)
| File "/tmp/tmpc21tnf33/tmp2zhinx0s.py", line 1
(a,b,c,d,e,f) = map(int,input().split())
IndentationError: unexpected indent
| |
s465081632 | p00004 | u978863922 | 1540904443 | Python | Python3 | py | Runtime Error | 0 | 0 | 152 | while True:
(a,b,c,d,e,f) = map(int,input().split())
g = (a * e) - (b * d)
ans= "{0:.3f}".format((( e * c) + ( -b * f)) / g + 0)
print (ans)
| Traceback (most recent call last):
File "/tmp/tmptaykplya/tmph96p9abt.py", line 2, in <module>
(a,b,c,d,e,f) = map(int,input().split())
^^^^^^^
EOFError: EOF when reading a line
| |
s589634490 | p00004 | u978863922 | 1540904914 | Python | Python3 | py | Runtime Error | 0 | 0 | 216 | while True:
(a,b,c,d,e,f) = map(int,input().split())
g = (a * e) - (b * d)
ans1= "{0:.3f}".format((( e * c) + ( -b * f)) / g + 0)
ans2= "{0:.3f}".format(((-d * c) + ( a * f)) / g + 0)
print (ans1,ans2)
| Traceback (most recent call last):
File "/tmp/tmpr75ocmi_/tmpvfksr_22.py", line 2, in <module>
(a,b,c,d,e,f) = map(int,input().split())
^^^^^^^
EOFError: EOF when reading a line
| |
s250209895 | p00004 | u000163577 | 1546186707 | Python | Python3 | py | Runtime Error | 0 | 0 | 266 | while True:
try:
a,b,c,d,e,f = (map(int,input().split()))
n = d/a
a = n*a
b = n*b
c = n*c
y = (c-f)/(b-e)
x = (c-(b*y))/a
print("{0:.3f} {1:.3f}".format(x, y))
except EOFError:
break
| ||
s295792708 | p00004 | u563307622 | 1556442484 | Python | Python3 | py | Runtime Error | 0 | 0 | 289 | import numpy as np
a,b,c,d,e,f = list(map(int,input().split()))
a,b,c,d,e,f = int(a),int(b),int(c),int (d),int(e),int(f)
A = np.matrix([
[a, b],
[d, e]
])
Y = np.matrix([
[c],
[f]
])
result = np.linalg.inv(A)*Y
print('{:.3f}'.format(float(result[0])), '{:.3f}'.format(float(result[1])))
| Traceback (most recent call last):
File "/tmp/tmpnboxixjj/tmpkk5sd6fw.py", line 3, in <module>
a,b,c,d,e,f = list(map(int,input().split()))
^^^^^^^
EOFError: EOF when reading a line
| |
s884931748 | p00004 | u563307622 | 1556442878 | Python | Python3 | py | Runtime Error | 0 | 0 | 435 | #連立方程式
import numpy as np
while True:
try:
a,b,c,d,e,f = list(map(int,input().split()))
a,b,c,d,e,f = int(a),int(b),int(c),int (d),int(e),int(f)
function(a,b,c,d,e,f)
except EOFError:
break
def function(a,b,c,d,e,f):
A = np.matrix([
[a, b],
[d, e]
])
Y = np.matrix([
[c],
[f]
])
result = np.linalg.inv(A)*Y
print('{:.3f}'.format(float(result[0])), '{:.3f}'.format(float(result[1])))
| File "/tmp/tmp_rplfwi_/tmpx20gmss8.py", line 13
A = np.matrix([
^
IndentationError: expected an indented block after function definition on line 12
| |
s145331421 | p00004 | u563307622 | 1556442920 | Python | Python3 | py | Runtime Error | 0 | 0 | 475 | #連立方程式
import numpy as np
while True:
try:
a,b,c,d,e,f = list(map(int,input().split()))
a,b,c,d,e,f = int(a),int(b),int(c),int (d),int(e),int(f)
function(a,b,c,d,e,f)
except EOFError:
break
def function(a,b,c,d,e,f):
A = np.matrix([
[a, b],
[d, e]
])
Y = np.matrix([
[c],
[f]
])
result = np.linalg.inv(A)*Y
print('{:.3f}'.format(float(result[0])), '{:.3f}'.format(float(result[1])))
| ||
s783366066 | p00004 | u563307622 | 1556443088 | Python | Python3 | py | Runtime Error | 0 | 0 | 475 | #連立方程式
import numpy as np
def function(a,b,c,d,e,f):
A = np.matrix([
[a, b],
[d, e]
])
Y = np.matrix([
[c],
[f]
])
result = np.linalg.inv(A)*Y
print('{:.3f}'.format(float(result[0])), '{:.3f}'.format(float(result[1])))
while True:
try:
a,b,c,d,e,f = list(map(int,input().split()))
a,b,c,d,e,f = int(a),int(b),int(c),int (d),int(e),int(f)
function(a,b,c,d,e,f)
except EOFError:
break
| ||
s602355627 | p00004 | u563307622 | 1556443163 | Python | Python3 | py | Runtime Error | 0 | 0 | 407 | #連立方程式 標準機能のみで
import numpy as np
def function(a,b,c,d,e,f):
y = (c - a*f/d)/(b - a*e/d)
x = (c - b*y)/a
print('{:.3f}'.format(float(x)), '{:.3f}'.format(float(y)))
while True:
try:
a,b,c,d,e,f = list(map(int,input().split()))
a,b,c,d,e,f = int(a),int(b),int(c),int (d),int(e),int(f)
function(a,b,c,d,e,f)
except EOFError:
break
| ||
s634672143 | p00004 | u563307622 | 1556443789 | Python | Python3 | py | Runtime Error | 0 | 0 | 348 | def function(a,b,c,d,e,f):
y = (c - a*f/d)/(b - a*e/d)
x = (c - b*y)/a
print('{:.3f}'.format(float(x)), '{:.3f}'.format(float(y)))
while True:
try:
a,b,c,d,e,f = list(map(int,input().split()))
a,b,c,d,e,f = int(a),int(b),int(c),int (d),int(e),int(f)
function(a,b,c,d,e,f)
except EOFError:
break
| ||
s103904332 | p00004 | u563307622 | 1556443862 | Python | Python3 | py | Runtime Error | 0 | 0 | 348 | def function(a,b,c,d,e,f):
y = (c - a*f/d)/(b - a*e/d)
x = (c - b*y)/a
print('{:.3f}'.format(float(x)), '{:.3f}'.format(float(y)))
while True:
try:
a,b,c,d,e,f = list(map(int,input().split()))
a,b,c,d,e,f = int(a),int(b),int(c),int (d),int(e),int(f)
function(a,b,c,d,e,f)
except EOFError:
break
| ||
s777878276 | p00004 | u936370024 | 1556810663 | Python | Python3 | py | Runtime Error | 0 | 0 | 297 | import numpy as np
while True:
try:
a,b,c,d,e,f = list(map(int,input().split()))
ume = np.array([a,b,d,e]).reshape(2,2)
boshi = np.array([c,f]).reshape(2,1)
answer = np.linalg.inv(ume) @ boshi
print("%.3f %.3f" % (answer[0,0],answer[1,0]))
except ValueError:
break
| Traceback (most recent call last):
File "/tmp/tmpn9hwfbd2/tmp4ixiici4.py", line 5, in <module>
a,b,c,d,e,f = list(map(int,input().split()))
^^^^^^^
EOFError: EOF when reading a line
| |
s927838533 | p00004 | u247705495 | 1559449544 | Python | Python3 | py | Runtime Error | 0 | 0 | 314 | import numpy as np
while True:
try:
a, b, c, d, e, f = map(float, input().split())
A = [[a, b],
[d, e]]
Y = [c, f]
X = np.linalg.solve(A, Y)
print("{0:.3f} {1:.3f}".format(np.round(X[0], 4), np.round(X[1], 4)))
except EOFError:
break
| ||
s572439500 | p00004 | u907094926 | 1413640265 | Python | Python | py | Runtime Error | 0 | 0 | 223 | while True:
try:
[a,b,c,d,e,f] = map(float,raw_input().split(' '))
y = (c / a - f / d) / (b/a - e / d)
x = (c - b * y) / d
print "%0.3f %0.3f" % (x,y)
except (EOFError):
break | File "/tmp/tmpja42w0sc/tmp3tluamq3.py", line 6
print "%0.3f %0.3f" % (x,y)
^^^^^^^^^^^^^^^^^^^^^^^^^^^
SyntaxError: Missing parentheses in call to 'print'. Did you mean print(...)?
| |
s546979654 | p00004 | u907094926 | 1413640747 | Python | Python | py | Runtime Error | 0 | 0 | 223 | while True:
try:
[a,b,c,d,e,f] = map(float,raw_input().split(' '))
y = (c / a - f / d) / (b/a - e / d)
x = (c - b * y) / d
print "%0.3f %0.3f" % (x,y)
except (EOFError):
break | File "/tmp/tmpa4lkc508/tmpspkjj502.py", line 6
print "%0.3f %0.3f" % (x,y)
^^^^^^^^^^^^^^^^^^^^^^^^^^^
SyntaxError: Missing parentheses in call to 'print'. Did you mean print(...)?
| |
s571767273 | p00004 | u907094926 | 1414220959 | Python | Python | py | Runtime Error | 0 | 0 | 508 | while True:
try:
[a,b,c,d,e,f] = map(float,raw_input().split(' '))
if a == 0.0:
if b != 0.0:
y = c / b
x = 0.0
else:
y = 0
x = 0
elif b == 0.0:
if a != 0.0:
x = c / a
y = 0
else:
y = (c / a - f / d) / (b/a - e / d)
x = (c - b * y) / d
print "%0.3f %0.3f" % (x,y)
except (EOFError):
break | File "/tmp/tmpc7ladlhr/tmpitpvvjs0.py", line 19
print "%0.3f %0.3f" % (x,y)
^^^^^^^^^^^^^^^^^^^^^^^^^^^
SyntaxError: Missing parentheses in call to 'print'. Did you mean print(...)?
| |
s198683726 | p00004 | u907094926 | 1414221466 | Python | Python | py | Runtime Error | 0 | 0 | 625 | while True:
try:
[a,b,c,d,e,f] = map(float,raw_input().split(' '))
if a == 0.0:
if b != 0.0:
y = c / b
x = 0.0
else:
y = 0
x = 0
elif b == 0.0:
if a != 0.0:
x = c / a
y = 0
elif d == 0.0:
if e != 0.0:
y = f / e
x = 0
else:
y = 0
x = 0
elif e == 0.0:
if d != 0.0:
x = f / d
y = 0
else:
x = | File "/tmp/tmpzivkinu1/tmpdlo2lfel.py", line 27
x =
^
SyntaxError: invalid syntax
| |
s534379703 | p00004 | u506132575 | 1416097555 | Python | Python | py | Runtime Error | 0 | 0 | 295 | #!/usr/bin/env python
# -*- coding: utf-8 -*-
import sys
import numpy
for s in sys.stdin:
d = map( int, s.split() )
a = numpy.matrix( [ [ d[0], d[1] ], [ d[3], d[4] ] ] )
b = numpy.matrix( [ d[2], d[5] ]).T
c = numpy.dot(a.I,b)
print "%.3f %.3f" % ( float(c[0][0]) , float(c[1][0]) ) | File "/tmp/tmpydjcq2n3/tmpkclys_lh.py", line 12
print "%.3f %.3f" % ( float(c[0][0]) , float(c[1][0]) )
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
SyntaxError: Missing parentheses in call to 'print'. Did you mean print(...)?
| |
s907677917 | p00004 | u379499530 | 1418311194 | Python | Python | py | Runtime Error | 0 | 0 | 207 | import sys
x = y = 0.000
for i in sys.stdin():
a, b, c, d, e, f = map(int, i.split())
y = ((c * d) - (a * f)) / ((b * d) - (a * e))
x = (c - (b * y)) / a
print '{0:.3f} {1:.3f}'.format(x, y) | File "/tmp/tmp_c7zj7ro/tmpi5sciy8x.py", line 8
print '{0:.3f} {1:.3f}'.format(x, y)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
SyntaxError: Missing parentheses in call to 'print'. Did you mean print(...)?
| |
s411736813 | p00004 | u379499530 | 1418311292 | Python | Python | py | Runtime Error | 0 | 0 | 197 | x = y = 0.000
for i in sys.stdin():
a, b, c, d, e, f = map(int, i.split())
y = ((c * d) - (a * f)) / ((b * d) - (a * e))
x = (c - (b * y)) / a
print '{0:.3f} {1:.3f}\n'.format(x, y) | File "/tmp/tmp3cnrbfh3/tmpths13ji3.py", line 6
print '{0:.3f} {1:.3f}\n'.format(x, y)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
SyntaxError: Missing parentheses in call to 'print'. Did you mean print(...)?
| |
s839821080 | p00004 | u989992553 | 1420879310 | Python | Python | py | Runtime Error | 0 | 0 | 170 | def test(a, b, c, d, e, f):
def check():
while True:
sides = map(int, raw_input().split())
if __name__ == "__main__":
# check()
print test(1, 2, 3, 4, 5, 5) | File "/tmp/tmpxki86cin/tmpewworz4x.py", line 5
def check():
^
IndentationError: expected an indented block after function definition on line 1
| |
s159899794 | p00004 | u989992553 | 1420879339 | Python | Python | py | Runtime Error | 0 | 0 | 214 | def test(a, b, c, d, e, f):
def check():
while True:
try:
sides = map(int, raw_input().split())
except Exception, e:
break
if __name__ == "__main__":
# check()
print test(1, 2, 3, 4, 5, 5) | File "/tmp/tmprdmjxmwj/tmp9r9kj9u0.py", line 5
def check():
^
IndentationError: expected an indented block after function definition on line 1
| |
s571405495 | p00004 | u989992553 | 1420879351 | Python | Python | py | Runtime Error | 0 | 0 | 214 | def test(a, b, c, d, e, f):
def check():
while True:
try:
sides = map(int, raw_input().split())
except Exception, e:
break
if __name__ == "__main__":
check()
# print test(1, 2, 3, 4, 5, 5) | File "/tmp/tmpd80lh7z6/tmpdh1ceyg_.py", line 5
def check():
^
IndentationError: expected an indented block after function definition on line 1
| |
s869936751 | p00004 | u442472098 | 1423228391 | Python | Python3 | py | Runtime Error | 0 | 0 | 1354 | #!/usr/bin/env python3
import sys
def Print(array):
for r in range(len(array)):
print(array[r])
print()
def Gauss(array):
# for r in range(len(array)):
# array[r].append(r) # 繝斐?繝?ヨ驕ク謚槭@縺溷セ? 譛?セ後↓謌サ縺吶◆繧√?繝槭?繧ォ繝シ
for r in range(len(array)): # 蜑埼?豸亥悉
# array.sort(key=lambda x: x[r], reverse=True) # 繝斐?繝?ヨ
div = array[r][r]
for c in range(r, len(array) + 1): # 迴セ蝨ィ縺ョ陦後?蜈磯?縺?縺ォ縺ェ繧九h縺?↓蜑イ繧? array[r][c] /= div
for r2 in range(r + 1, len(array)): # 迴セ蝨ィ縺ョ陦後h繧贋ク九?陦後?蜈磯?繧?縺ォ縺吶k
head = array[r2][r]
for c in range(r, len(array) + 1):
array[r2][c] -= head * array[r][c]
result = [0] * len(array)
for r in range(len(array) - 1, -1, -1): # 蠕碁?莉」蜈・
result[r] = array[r][
len(array)] - sum([result[x] * array[r][x] for x in range(r + 1, len(array))])
return result
for line in sys.stdin:
[a, b, c, d, e, f] = [int(x) for x in line.split()]
result = Gauss([[a, b, c], [d, e, f]])
for i in range(len(result) - 1):
print("{0:.3f}".format(result[i]), end=" ")
print("{0:.3f}".format(result[-1])) | File "/tmp/tmpx8incm6g/tmpb4qq9i7i.py", line 19
for r2 in range(r + 1, len(array)): # 迴セ蝨ィ縺ョ陦後h繧贋ク九?陦後?蜈磯?繧?縺ォ縺吶k
^
IndentationError: expected an indented block after 'for' statement on line 18
| |
s245247627 | p00004 | u442472098 | 1423228488 | Python | Python3 | py | Runtime Error | 0 | 0 | 1348 | #!/usr/bin/env python3
import sys
def Print(array):
for r in range(len(array)):
print(array[r])
print()
def Gauss(array):
for r in range(len(array)):
array[r].append(r) # 繝斐?繝?ヨ驕ク謚槭@縺溷セ? 譛?セ後↓謌サ縺吶◆繧√?繝槭?繧ォ繝シ
for r in range(len(array)): # 蜑埼?豸亥悉
array.sort(key=lambda x: x[r], reverse=True) # 繝斐?繝?ヨ
div = array[r][r]
for c in range(r, len(array) + 1): # 迴セ蝨ィ縺ョ陦後?蜈磯?縺?縺ォ縺ェ繧九h縺?↓蜑イ繧? array[r][c] /= div
for r2 in range(r + 1, len(array)): # 迴セ蝨ィ縺ョ陦後h繧贋ク九?陦後?蜈磯?繧?縺ォ縺吶k
head = array[r2][r]
for c in range(r, len(array) + 1):
array[r2][c] -= head * array[r][c]
result = [0] * len(array)
for r in range(len(array) - 1, -1, -1): # 蠕碁?莉」蜈・
result[r] = array[r][
len(array)] - sum([result[x] * array[r][x] for x in range(r + 1, len(array))])
return result
for line in sys.stdin:
[a, b, c, d, e, f] = [int(x) for x in line.split()]
result = Gauss([[a, b, c], [d, e, f]])
for i in range(len(result) - 1):
print("{0:.3f}".format(result[i]), end=" ")
print("{0:.3f}".format(result[-1])) | File "/tmp/tmpnacq86yp/tmpuk90hdws.py", line 19
for r2 in range(r + 1, len(array)): # 迴セ蝨ィ縺ョ陦後h繧贋ク九?陦後?蜈磯?繧?縺ォ縺吶k
^
IndentationError: expected an indented block after 'for' statement on line 18
| |
s340453629 | p00004 | u879226672 | 1423266346 | Python | Python | py | Runtime Error | 0 | 0 | 200 | while True:
a,b,c,d,e,f = map(int,raw_input().split())
x = 0.; y = 0.
delta = abs(a*e-b*d)
x = float((e*c-b*f)/delta)
y = float((a*f-d*c)/delta)
print "%.3f %.3f" % (x,y)
| File "/tmp/tmpn0n6t7vx/tmpw1odhlm4.py", line 8
print "%.3f %.3f" % (x,y)
^^^^^^^^^^^^^^^^^^^^^^^^^
SyntaxError: Missing parentheses in call to 'print'. Did you mean print(...)?
| |
s654608391 | p00004 | u349293999 | 1423837920 | Python | Python | py | Runtime Error | 0 | 0 | 243 | # coding: UTF-8
while True:
num = map(float,raw_input().split())
x = (num[2]*num[4] - num[1]*num[5]) / (num[0]*num[4] - num[1]*num[3])
y = (num[5]*num[0]-num[2]*num[3]) / (num[0]*num[4]-num[3]*num[1])
print "%0.3f %0.3f"%(x,y) | File "/tmp/tmpw5dptlqx/tmp12y63eek.py", line 7
print "%0.3f %0.3f"%(x,y)
^^^^^^^^^^^^^^^^^^^^^^^^^
SyntaxError: Missing parentheses in call to 'print'. Did you mean print(...)?
| |
s814140316 | p00004 | u349293999 | 1423838115 | Python | Python | py | Runtime Error | 0 | 0 | 248 | import sys
for line in sys.stdin:
num = map(float,raw_input().split())
x = (num[2]*num[4] - num[1]*num[5]) / (num[0]*num[4] - num[1]*num[3])
y = (num[5]*num[0]-num[2]*num[3]) / (num[0]*num[4]-num[3]*num[1])
print "%0.3f %0.3f"%(x,y) | File "/tmp/tmpq6bebyie/tmpq89lcoa_.py", line 6
print "%0.3f %0.3f"%(x,y)
^^^^^^^^^^^^^^^^^^^^^^^^^
SyntaxError: Missing parentheses in call to 'print'. Did you mean print(...)?
| |
s095413483 | p00004 | u349293999 | 1423838470 | Python | Python | py | Runtime Error | 0 | 0 | 285 | import sys
line = sys.stdin.read().splitlines()
for line in len(line):
num = map(float,raw_input().split())
x = (num[2]*num[4] - num[1]*num[5]) / (num[0]*num[4] - num[1]*num[3])
y = (num[5]*num[0]-num[2]*num[3]) / (num[0]*num[4]-num[3]*num[1])
print "%0.3f %0.3f"%(x,y) | File "/tmp/tmpiktvkpvi/tmp0jyydv8v.py", line 7
print "%0.3f %0.3f"%(x,y)
^^^^^^^^^^^^^^^^^^^^^^^^^
SyntaxError: Missing parentheses in call to 'print'. Did you mean print(...)?
| |
s796454340 | p00004 | u349293999 | 1423841302 | Python | Python | py | Runtime Error | 0 | 0 | 313 | import sys
for line in sys.stdin.readlines():
num = map(float, line.strip().split())
x = (num[2]*num[4] - num[1]*num[5]) / (num[0]*num[4] - num[1]*num[3])
y = (num[5]*num[0]-num[2]*num[3]) / (num[0]*num[4]-num[3]*num[1])
out.append( "%0.3f %0.3f"%(x,y))
for i in xrange(len(out)):
print out[i] | File "/tmp/tmp3lc8mer8/tmpmqbyij6v.py", line 8
print out[i]
^^^^^^^^^^^^
SyntaxError: Missing parentheses in call to 'print'. Did you mean print(...)?
| |
s413105441 | p00004 | u355726239 | 1426737819 | Python | Python3 | py | Runtime Error | 0 | 0 | 241 | #!/usr/bin/env python
# -*- coding: utf-8 -*-
while True:
a, b, c, d, e, f = map(float, input().split())
tmp = a/d
y = (c - tmp*f)/(b - tmp*e)
x = (c - b*y)/a
x = round(x)
y = round(y)
print('%.3f %.3f' % (x, y)) | Traceback (most recent call last):
File "/tmp/tmpcd9qmoqn/tmpft504rc1.py", line 5, in <module>
a, b, c, d, e, f = map(float, input().split())
^^^^^^^
EOFError: EOF when reading a line
| |
s416606815 | p00004 | u355726239 | 1426739347 | Python | Python3 | py | Runtime Error | 0 | 0 | 271 | #!/usr/bin/env python
# -*- coding: utf-8 -*-
while True:
try:
a, b, c, d, e, f = map(float, input().split())
x = (c*e - b*f) / (a*e - b*d)
y = (a*f - d*c) / (a*e - b*d)
print('{:.3f} {:.3f}'.format(x+0, y+0)
except:
break | File "/tmp/tmphkgdxvbe/tmpkxaoyg8m.py", line 9
print('{:.3f} {:.3f}'.format(x+0, y+0)
^
SyntaxError: '(' was never closed
| |
s504498498 | p00004 | u396642573 | 1428915277 | Python | Python | py | Runtime Error | 0 | 0 | 203 | import sys
from numpy import *
from numpy.linalg import *
for v in sys.stdin:
a,b,c,d,e,f = map(int, v.split())
x = array([[a,b], [d,e]])
y = array([c,f])
res = solve(x, y)
print res | File "/tmp/tmpz5xb38a8/tmpw1rhmtpc.py", line 10
print res
^^^^^^^^^
SyntaxError: Missing parentheses in call to 'print'. Did you mean print(...)?
| |
s808845717 | p00004 | u396642573 | 1428915550 | Python | Python | py | Runtime Error | 0 | 0 | 269 | import sys
from numpy import *
from numpy.linalg import *
while True:
try:
a,b,c,d,e,f = map(int, raw_input().split())
x = array([[a,b], [d,e]])
y = array([c,f])
res = solve(x, y)
print res
except EOFError:
break | File "/tmp/tmpjsdeo5x4/tmp845_1all.py", line 11
print res
^^^^^^^^^
SyntaxError: Missing parentheses in call to 'print'. Did you mean print(...)?
| |
s691095981 | p00004 | u396642573 | 1428915645 | Python | Python | py | Runtime Error | 0 | 0 | 280 | import sys
from numpy import *
from numpy.linalg import *
while True:
try:
a,b,c,d,e,f = map(int, raw_input().split())
x = array([[a,b], [d,e]])
y = array([c,f])
res = solve(x, y)
print res[0], res[1]
except EOFError:
break | File "/tmp/tmpanch0n40/tmptvrx2g5w.py", line 11
print res[0], res[1]
^^^^^^^^^^^^^^^^^^^^
SyntaxError: Missing parentheses in call to 'print'. Did you mean print(...)?
| |
s112318612 | p00004 | u308369184 | 1430997343 | Python | Python3 | py | Runtime Error | 0 | 0 | 262 | import math
while True:
try:
line=input()
except:
break
a,b,c,d,e,f=map(int, line.strip().split())
z=a*e-b*d
if z==0:
break
y=(c*d-f*a)/(b*d-a*e)
x=(c*e-f*b)/(a*e-b*d)
print(round(x,3) round(y,3))
| File "/tmp/tmp7fsyycns/tmpsyc_ckx3.py", line 18
print(round(x,3) round(y,3))
^^^^^^^^^^^^^^^^^^^^^
SyntaxError: invalid syntax. Perhaps you forgot a comma?
| |
s942056114 | p00004 | u308369184 | 1430998505 | Python | Python3 | py | Runtime Error | 0 | 0 | 265 | while True:
try:
line=input()
except:
break
a,b,c,d,e,f=map(int, line.strip().split())
z=a*e-b*d
if z!==0:
y=(c*d-f*a)/(b*d-a*e)
x=(c*e-f*b)/(a*e-b*d)
print('{:.3f} {:.3f}'.format(x,y))
| File "/tmp/tmptn26dkq7/tmpq2fsbdct.py", line 12
if z!==0:
^
SyntaxError: invalid syntax
| |
s797198241 | p00004 | u308369184 | 1431002186 | Python | Python3 | py | Runtime Error | 0 | 0 | 321 | hile True:
try:
line=input()
except:
break
a,b,c,d,e,f=map(int, line.strip().split())
y=(c*d-f*a)/(b*d-a*e)
x=(c*e-f*b)/(a*e-b*d)
if x<=0 and x>=-0.0005:
x=0
if y<=0 and y>=-0.0005:
y=0
print('{:.3f} {:.3f}'.format(x,y))
| File "/tmp/tmp4xnwbq_g/tmpbno4iliq.py", line 1
hile True:
^^^^
SyntaxError: invalid syntax
| |
s884499028 | p00004 | u520870854 | 1431702486 | Python | Python | py | Runtime Error | 0 | 0 | 223 | while(check):
line = raw_input()
s = line.rstrip().split()
for i in range(6):
s[i] = int(s[i])
print (s[2]*s[4] - s[1]*s[5])/(s[0]*s[4] - s[1]*s[3]), (s[1]*s[5] - s[3]*s[2]) / (s[0]*s[4] - s[1]*s[3]) | Traceback (most recent call last):
File "/tmp/tmpnzl4abf5/tmp89zyoxkk.py", line 1, in <module>
while(check):
^^^^^
NameError: name 'check' is not defined
| |
s477058292 | p00004 | u520870854 | 1431702519 | Python | Python | py | Runtime Error | 0 | 0 | 222 | while(True):
line = raw_input()
s = line.rstrip().split()
for i in range(6):
s[i] = int(s[i])
print (s[2]*s[4] - s[1]*s[5])/(s[0]*s[4] - s[1]*s[3]), (s[1]*s[5] - s[3]*s[2]) / (s[0]*s[4] - s[1]*s[3]) | Traceback (most recent call last):
File "/tmp/tmpacvpff_k/tmph657sj13.py", line 2, in <module>
line = raw_input()
^^^^^^^^^
NameError: name 'raw_input' is not defined
| |
s498501275 | p00004 | u520870854 | 1431702718 | Python | Python | py | Runtime Error | 0 | 0 | 218 | while(True):
line = input()
s = line.rstrip().split()
for i in range(6):
s[i] = int(s[i])
print (s[2]*s[4] - s[1]*s[5])/(s[0]*s[4] - s[1]*s[3]), (s[1]*s[5] - s[3]*s[2]) / (s[0]*s[4] - s[1]*s[3]) | Traceback (most recent call last):
File "/tmp/tmphild84n0/tmph3gn_i48.py", line 2, in <module>
line = input()
^^^^^^^
EOFError: EOF when reading a line
| |
s697281439 | p00004 | u682755774 | 1433096396 | Python | Python | py | Runtime Error | 0 | 0 | 274 | from numpy import *
from numpy.linalg import *
while True:
try:
a = map(int,raw_input().split())
b = array([[a[0],a[1]],[a[3],a[4]]])
c = array([a[2],a[5]])
x = solve(b,c)
print "%.4f %.4f" % (x[0],x[1])
except:
break | File "/tmp/tmpel36two0/tmp7wi9e6w4.py", line 10
print "%.4f %.4f" % (x[0],x[1])
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
SyntaxError: Missing parentheses in call to 'print'. Did you mean print(...)?
| |
s329827519 | p00004 | u682755774 | 1433096456 | Python | Python | py | Runtime Error | 0 | 0 | 283 | from numpy import *
from numpy.linalg import *
while True:
try:
a = map(int,raw_input().split())
b = array([[a[0],a[1]],[a[3],a[4]]])
c = array([a[2],a[5]])
x = solve(b,c)
print "%.4f %.4f" % (x[0],x[1])
except EOFError:
break | File "/tmp/tmprdjcc7f3/tmpkk0pnr8d.py", line 10
print "%.4f %.4f" % (x[0],x[1])
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
SyntaxError: Missing parentheses in call to 'print'. Did you mean print(...)?
| |
s760238260 | p00004 | u873482706 | 1434191974 | Python | Python | py | Runtime Error | 0 | 0 | 1394 | import sys
from decimal import Decimal
def main():
for input_line in sys.stdin:
input_line = raw_input()
x1 = int(input_line.split(' ')[0])
y1 = int(input_line.split(' ')[1])
p = int(input_line.split(' ')[2])
x2 = int(input_line.split(' ')[3])
y2 = int(input_line.split(' ')[4])
q = int(input_line.split(' ')[5])
multiplicand1, multiplicand2 = calculate1(x1, x2)
after_y1, after_y2, after_p, after_q = calculate2(y1, y2, p, q, multiplicand1, multiplicand2)
calculate3(after_y1, after_y2, after_p, after_q, x1, y1, p)
def calculate1(x1, x2):
if (x1 >= 0 and x2 >= 0) or (x1 < 0 and x2 < 0):
multiplicand1 = -x2
multiplicand2 = x1
return multiplicand1, multiplicand2
else:
multiplicand1 = abs(x2)
multiplicand2 = abs(x1)
return multiplicand1, multiplicand2
def calculate2(y1, y2, p, q, multiplicand1, multiplicand2):
after_y1 = y1 * multiplicand1
after_y2 = y2 * multiplicand2
after_p = p * multiplicand1
after_q = q * multiplicand2
return after_y1, after_y2, after_p, after_q
def calculate3(after_y1, after_y2, after_p, after_q, x1, y1, p):
y = Decimal(after_p + after_q) / Decimal(after_y1 + after_y2)
x = Decimal(p - y1 * y) / Decimal(x1)
print('%.4f %.4f' % (x, y))
if __name__ == '__main__':
main() | ||
s737091649 | p00004 | u873482706 | 1434192020 | Python | Python | py | Runtime Error | 0 | 0 | 1394 | import sys
from decimal import Decimal
def main():
for input_line in sys.stdin:
input_line = raw_input()
x1 = int(input_line.split(' ')[0])
y1 = int(input_line.split(' ')[1])
p = int(input_line.split(' ')[2])
x2 = int(input_line.split(' ')[3])
y2 = int(input_line.split(' ')[4])
q = int(input_line.split(' ')[5])
multiplicand1, multiplicand2 = calculate1(x1, x2)
after_y1, after_y2, after_p, after_q = calculate2(y1, y2, p, q, multiplicand1, multiplicand2)
calculate3(after_y1, after_y2, after_p, after_q, x1, y1, p)
def calculate1(x1, x2):
if (x1 >= 0 and x2 >= 0) or (x1 < 0 and x2 < 0):
multiplicand1 = -x2
multiplicand2 = x1
return multiplicand1, multiplicand2
else:
multiplicand1 = abs(x2)
multiplicand2 = abs(x1)
return multiplicand1, multiplicand2
def calculate2(y1, y2, p, q, multiplicand1, multiplicand2):
after_y1 = y1 * multiplicand1
after_y2 = y2 * multiplicand2
after_p = p * multiplicand1
after_q = q * multiplicand2
return after_y1, after_y2, after_p, after_q
def calculate3(after_y1, after_y2, after_p, after_q, x1, y1, p):
y = Decimal(after_p + after_q) / Decimal(after_y1 + after_y2)
x = Decimal(p - y1 * y) / Decimal(x1)
print('%.3f %.3f' % (x, y))
if __name__ == '__main__':
main() | ||
s840120510 | p00004 | u873482706 | 1434192205 | Python | Python | py | Runtime Error | 0 | 0 | 1434 | import sys
from decimal import Decimal
def main():
for input_line in sys.stdin:
input_line = raw_input()
x1 = int(input_line.split(' ')[0])
y1 = int(input_line.split(' ')[1])
p = int(input_line.split(' ')[2])
x2 = int(input_line.split(' ')[3])
y2 = int(input_line.split(' ')[4])
q = int(input_line.split(' ')[5])
multiplicand1, multiplicand2 = calculate1(x1, x2)
after_y1, after_y2, after_p, after_q = calculate2(y1, y2, p, q, multiplicand1, multiplicand2)
calculate3(after_y1, after_y2, after_p, after_q, x1, y1, p)
def calculate1(x1, x2):
if (x1 >= 0 and x2 >= 0) or (x1 < 0 and x2 < 0):
multiplicand1 = -x2
multiplicand2 = x1
return multiplicand1, multiplicand2
else:
multiplicand1 = abs(x2)
multiplicand2 = abs(x1)
return multiplicand1, multiplicand2
def calculate2(y1, y2, p, q, multiplicand1, multiplicand2):
after_y1 = y1 * multiplicand1
after_y2 = y2 * multiplicand2
after_p = p * multiplicand1
after_q = q * multiplicand2
return after_y1, after_y2, after_p, after_q
def calculate3(after_y1, after_y2, after_p, after_q, x1, y1, p):
y = Decimal(after_p + after_q) / Decimal(after_y1 + after_y2)
y = round(y, 3)
x = Decimal(p - y1 * y) / Decimal(x1)
x = round(x, 3)
print('%.3f %.3f' % (x, y))
if __name__ == '__main__':
main() | ||
s163454135 | p00004 | u873482706 | 1434192416 | Python | Python | py | Runtime Error | 0 | 0 | 1470 | import sys
from decimal import Decimal
def main():
for input_line in sys.stdin:
input_line = raw_input()
x1 = int(input_line.split(' ')[0])
y1 = int(input_line.split(' ')[1])
p = int(input_line.split(' ')[2])
x2 = int(input_line.split(' ')[3])
y2 = int(input_line.split(' ')[4])
q = int(input_line.split(' ')[5])
multiplicand1, multiplicand2 = calculate1(x1, x2)
after_y1, after_y2, after_p, after_q = calculate2(y1, y2, p, q, multiplicand1, multiplicand2)
calculate3(after_y1, after_y2, after_p, after_q, x1, y1, p)
def calculate1(x1, x2):
if (x1 >= 0 and x2 >= 0) or (x1 < 0 and x2 < 0):
multiplicand1 = -x2
multiplicand2 = x1
return multiplicand1, multiplicand2
else:
multiplicand1 = abs(x2)
multiplicand2 = abs(x1)
return multiplicand1, multiplicand2
def calculate2(y1, y2, p, q, multiplicand1, multiplicand2):
after_y1 = Decimal(y1 * multiplicand1)
after_y2 = Decimal(y2 * multiplicand2)
after_p = Decimal(p * multiplicand1)
after_q = Decimal(q * multiplicand2)
return after_y1, after_y2, after_p, after_q
def calculate3(after_y1, after_y2, after_p, after_q, x1, y1, p):
y = Decimal(after_p + after_q) / Decimal(after_y1 + after_y2)
y = round(y, 3)
x = Decimal(p - y1 * y) / Decimal(x1)
x = round(x, 3)
print('%.3f %.3f' % (x, y))
if __name__ == '__main__':
main() | ||
s548185857 | p00004 | u948218832 | 1443965188 | Python | Python | py | Runtime Error | 0 | 0 | 246 | import sys
import numpy as np
for line in sys.stdin:
a, b, c, d, e, f = map(float, line.split())
A = np.array([[a,b],[d,e]])
B = np.array([c,f])
x=np.linalg.solve(A,B)
print "{0:.3f}".format(round(x[0],3)), "{0:.3f}".format(round(x[1],3)) | File "/tmp/tmpbr4yfcv7/tmp5nln605l.py", line 11
print "{0:.3f}".format(round(x[0],3)), "{0:.3f}".format(round(x[1],3))
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
SyntaxError: Missing parentheses in call to 'print'. Did you mean print(...)?
| |
s957118174 | p00004 | u948218832 | 1443965934 | Python | Python | py | Runtime Error | 0 | 0 | 215 | import sys
import numpy as np
for line in sys.stdin:
a, b, c, d, e, f = map(float, line.split())
x = (c/b-f/e)/(a/b-d/e)
y = (c/a-f/d)/(b/a-e/d)
print "{0:.3f}".format(round(x,3)), "{0:.3f}".format(round(y,3)) | File "/tmp/tmpoaml4lt7/tmpeuzof3w0.py", line 9
print "{0:.3f}".format(round(x,3)), "{0:.3f}".format(round(y,3))
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
SyntaxError: Missing parentheses in call to 'print'. Did you mean print(...)?
| |
s139968087 | p00004 | u235282710 | 1444041015 | Python | Python | py | Runtime Error | 0 | 0 | 264 | from sympy import *
a, b, c, d, e, f = map(int, raw_input().strip().split(' '))
x, y = symbols('x y')
# ax + by = c
# dx + ey = f
res = solve((a*x+b*y - c , d*x+e*y - f), x, y)
x = res[x]
y = res[y]
x = float(str(x))
y = float(str(y))
print "%.3f %.3f" % (x, y) | File "/tmp/tmpyn45q4te/tmphyzl2z3r.py", line 14
print "%.3f %.3f" % (x, y)
^^^^^^^^^^^^^^^^^^^^^^^^^^
SyntaxError: Missing parentheses in call to 'print'. Did you mean print(...)?
| |
s994188265 | p00004 | u468759892 | 1449384991 | Python | Python3 | py | Runtime Error | 0 | 0 | 264 | import numpy as np
try:
a,b,c,d,e,f = (int(i) for i in input().split())
x,y = (np.dot(np.linalg.inv(np.array([[a,b],[d,e]])),np.array([c,f]))[0],np.dot(np.linalg.inv(np.array([[a,b],[d,e]])),np.array([3,6]))[1])
print(x,y)
except EOFError:
break | File "/tmp/tmpqjtj4ah8/tmpzpicoquz.py", line 7
break
^^^^^
SyntaxError: 'break' outside loop
| |
s483948140 | p00004 | u468759892 | 1449385031 | Python | Python3 | py | Runtime Error | 0 | 0 | 264 | import numpy as np
try:
a,b,c,d,e,f = (int(i) for i in input().split())
x,y = (np.dot(np.linalg.inv(np.array([[a,b],[d,e]])),np.array([c,f]))[0],np.dot(np.linalg.inv(np.array([[a,b],[d,e]])),np.array([3,6]))[1])
print(x,y)
except EOFError:
break | File "/tmp/tmpuho6y25z/tmp814pz5zb.py", line 7
break
^^^^^
SyntaxError: 'break' outside loop
| |
s220720847 | p00004 | u468759892 | 1449385258 | Python | Python3 | py | Runtime Error | 0 | 0 | 300 | import numpy as np
while True:
try:
a,b,c,d,e,f = (int(i) for i in input().split())
x,y = (np.dot(np.linalg.inv(np.array([[a,b],[d,e]])),np.array([c,f]))[0],np.dot(np.linalg.inv(np.array([[a,b],[d,e]])),np.array([3,6]))[1])
print(x,y)
except EOFError:
break | ||
s413958342 | p00004 | u468759892 | 1449385578 | Python | Python3 | py | Runtime Error | 0 | 0 | 291 | import numpy as np
while True:
try:
a,b,c,d,e,f = (int(i) for i in input().split())
x,y = (np.dot(np.linalg.inv(np.array([[a,b],[d,e]])),np.array([c,f]))[0],np.dot(np.linalg.inv(np.array([[a,b],[d,e]])),np.array([3,6]))[1])
print(x,y)
except:
break | ||
s823077360 | p00004 | u468759892 | 1449386763 | Python | Python3 | py | Runtime Error | 0 | 0 | 267 | import numpy as np
while True:
try:
a,b,c,d,e,f = (int(i) for i in input().split())
x,y = [np.dot(np.linalg.inv(np.array([[a,b],[d,e]])),np.array([c,f]))[0],np.dot(np.linalg.inv(np.array([[a,b],[d,e]])),np.array([c,f]))[1]]
print(x,y)
except EOFError:
break | ||
s126407785 | p00004 | u468759892 | 1449386795 | Python | Python3 | py | Runtime Error | 0 | 0 | 267 | import numpy as np
while True:
try:
a,b,c,d,e,f = (int(i) for i in input().split())
x,y = [np.dot(np.linalg.inv(np.array([[a,b],[d,e]])),np.array([c,f]))[0],np.dot(np.linalg.inv(np.array([[a,b],[d,e]])),np.array([c,f]))[1]]
print(x,y)
except EOFError:
break | ||
s347931013 | p00004 | u468759892 | 1449387611 | Python | Python3 | py | Runtime Error | 0 | 0 | 393 | import numpy as np
results = []
while True:
try:
a,b,c,d,e,f = (int(i) for i in input().split())
x,y = [np.dot(np.linalg.inv(np.array([[a,b],[d,e]])),np.array([c,f]))[0],np.dot(np.linalg.inv(np.array([[a,b],[d,e]])),np.array([c,f]))[1]]
results.append([x,y])
except EOFError:
for result in results:
print(result[0],result[1])
break | File "/tmp/tmpbezyqoo0/tmp_lvrmw55.py", line 8
except EOFError:
^
IndentationError: unindent does not match any outer indentation level
| |
s734292613 | p00004 | u468759892 | 1449387670 | Python | Python3 | py | Runtime Error | 0 | 0 | 393 | import numpy as np
results = []
while True:
try:
a,b,c,d,e,f = (int(i) for i in input().split())
x,y = [np.dot(np.linalg.inv(np.array([[a,b],[d,e]])),np.array([c,f]))[0],np.dot(np.linalg.inv(np.array([[a,b],[d,e]])),np.array([c,f]))[1]]
results.append([x,y])
except EOFError:
for result in results:
print(result[0],result[1])
break | File "/tmp/tmppqc1otuq/tmpryoov6zl.py", line 8
except EOFError:
^
IndentationError: unindent does not match any outer indentation level
| |
s953539535 | p00004 | u468759892 | 1449387808 | Python | Python3 | py | Runtime Error | 0 | 0 | 18 | import numpy as np | ||
s287067198 | p00004 | u468759892 | 1449387851 | Python | Python3 | py | Runtime Error | 0 | 0 | 3 | aaa | Traceback (most recent call last):
File "/tmp/tmp1env6n4d/tmpsrcmira_.py", line 1, in <module>
aaa
NameError: name 'aaa' is not defined
| |
s185333076 | p00004 | u468759892 | 1449387931 | Python | Python3 | py | Runtime Error | 0 | 0 | 18 | import numpy as np | ||
s440707180 | p00004 | u468759892 | 1449388046 | Python | Python3 | py | Runtime Error | 0 | 0 | 297 | import numpy as np
while True:
try:
a,b,c,d,e,f = (int(i) for i in input().split())
x,y = [np.dot(np.linalg.inv(np.array([[a,b],[d,e]])),np.array([c,f]))[0],np.dot(np.linalg.inv(np.array([[a,b],[d,e]])),np.array([c,f]))[1]]
print(x,y)
except EOFError:
break | ||
s636660862 | p00004 | u468759892 | 1449388310 | Python | Python3 | py | Runtime Error | 0 | 0 | 12 | import numpy | ||
s868855067 | p00004 | u468759892 | 1449388328 | Python | Python3 | py | Runtime Error | 0 | 0 | 18 | import numpy as np | ||
s099686632 | p00004 | u468759892 | 1449388645 | Python | Python3 | py | Runtime Error | 0 | 0 | 341 | import numpy
while True:
try:
a,b,c,d,e,f = (int(i) for i in input().split())
x,y = [numpy.dot(numpy.linalg.inv(numpy.array([[a,b],[d,e]])),numpy.array([c,f]))[0],numpy.dot(numpy.linalg.inv(numpy.array([[a,b],[d,e]])),numpy.array([c,f]))[1]]
print("{0:.3f} {1:.3f}".format(x,y))
except EOFError:
break | ||
s093927101 | p00004 | u468759892 | 1449388725 | Python | Python3 | py | Runtime Error | 0 | 0 | 343 | import numpy
while True:
try:
a,b,c,d,e,f = (int(i) for i in input().split())
#x,y = [numpy.dot(numpy.linalg.inv(numpy.array([[a,b],[d,e]])),numpy.array([c,f]))[0],numpy.dot(numpy.linalg.inv(numpy.array([[a,b],[d,e]])),numpy.array([c,f]))[1]]
#print("{0:.3f} {1:.3f}".format(x,y))
except EOFError:
break | ||
s209941880 | p00004 | u468759892 | 1449388791 | Python | Python3 | py | Runtime Error | 0 | 0 | 347 | import numpy
#while True:
# try:
# a,b,c,d,e,f = (int(i) for i in input().split())
# x,y = [numpy.dot(numpy.linalg.inv(numpy.array([[a,b],[d,e]])),numpy.array([c,f]))[0],numpy.dot(numpy.linalg.inv(numpy.array([[a,b],[d,e]])),numpy.array([c,f]))[1]]
# print("{0:.3f} {1:.3f}".format(x,y))
# except EOFError:
# break | ||
s349471296 | p00004 | u468759892 | 1449388823 | Python | Python3 | py | Runtime Error | 0 | 0 | 12 | import numpy | ||
s948752774 | p00004 | u282982700 | 1449557386 | Python | Python | py | Runtime Error | 0 | 0 | 151 | import sys
for i in sys.stdin:
a,b,c,d,e,f = map(int, i.split())
x=(c*e-b*f)/(a*e-b*d)
y=(f-d*x)/e
print "{0:.3f} {1:.3f}".format(x, y) | File "/tmp/tmp44br_3zg/tmpd1vyvq41.py", line 6
print "{0:.3f} {1:.3f}".format(x, y)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
SyntaxError: Missing parentheses in call to 'print'. Did you mean print(...)?
| |
s313749938 | p00004 | u282982700 | 1449557635 | Python | Python | py | Runtime Error | 0 | 0 | 151 | import sys
for i in sys.stdin:
a,b,c,d,e,f = map(int, i.split())
x=(c*e-b*f)/(a*e-b*d)
y=(f-d*x)/e
print "{0:.3f} {1:.3f}".format(x, y) | File "/tmp/tmpun8wunv2/tmpcbxaclf0.py", line 6
print "{0:.3f} {1:.3f}".format(x, y)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
SyntaxError: Missing parentheses in call to 'print'. Did you mean print(...)?
| |
s630447266 | p00004 | u282982700 | 1449557892 | Python | Python | py | Runtime Error | 0 | 0 | 138 | import sys
for i in sys.stdin:
a,b,c,d,e,f = map(int, i.split())
x=(c*e-b*f)/(a*e-b*d)
y=(f-d*x)/e
print "%.3f %.3f"%(x,y) | File "/tmp/tmpzxqjcg0b/tmpcx3awmr9.py", line 6
print "%.3f %.3f"%(x,y)
^^^^^^^^^^^^^^^^^^^^^^^
SyntaxError: Missing parentheses in call to 'print'. Did you mean print(...)?
| |
s857682052 | p00004 | u609881501 | 1450241677 | Python | Python3 | py | Runtime Error | 0 | 0 | 519 | import sys
#inputNum = sys.stdin.readlines()[:-1]
inputNum = open('sample.txt', 'r')
for i in inputNum:
new = []
n = i[:-1].split(' ', 6)
for s in n:
new.append(float(s))
k = new[0]
q = 0
for a in new[0:3]:
new[q] = a/k
q = q + 1
l = new[3]
for a in new[3:6]:
new[q] = a - l*new[q-3]
q = q + 1
if new[4] == 0:
y = new[5]
else:
y = new[5]/new[4]
x = new[2]-(new[1]*y)
print("{0:.3f}".format(x),"{0:.3f}".format(y)) | Traceback (most recent call last):
File "/tmp/tmpud1etoxz/tmphyyxgzcw.py", line 4, in <module>
inputNum = open('sample.txt', 'r')
^^^^^^^^^^^^^^^^^^^^^^^
FileNotFoundError: [Errno 2] No such file or directory: 'sample.txt'
| |
s900863318 | p00004 | u512342660 | 1451324615 | Python | Python | py | Runtime Error | 10 | 6352 | 1386 | import sys
import time
def anscheck(x,y,d,e,f):
print "%.3f %.3f %.3f %.3f %.3f"%(x,y,d,e,f)
time.sleep(1)
if d*x+e*y == f:
# print "correct!"
print "%.3f %.3f"%(x,y)
return True
else:
# print "different"
return False
for line in sys.stdin:
a,b,c,d,e,f = map(float,line.split())
i=0
while True:
if (a*i-c) % b ==0:
x=i
if a*i-c>0:
y= -((a*i-c)/b)
elif a*i-c<0:
y= (a*i-c)/b
else:
y=0
if anscheck(x,y,d,e,f):
break
# if b*i-c % a == 0:
# x=i
# if b*i>c:
# y= -(b*i-c)/a
# elif b*i<c:
# y= (b*i-c)/a
# else:
# pass
# anscheck(x,y,d,e,f)
if (a*(-i)-c) % b ==0:
x=-i
if a*(-i)-c > 0:
y= (a*(-i)-c)/b
elif a*(-i)-c<0:
y= -((a*(-i)-c)/b)
else:
y=0
if anscheck(x,y,d,e,f):
break
# if b*(-i)-c % a ==0:
# x=-i
# if b*(-i)>c:
# y= -(b*(-i)-c)/a
# elif b*(-i)<c:
# y= (b*(-i)-c)/a
# else:
# pass
# anscheck(x,y,d,e,f)
i+=1.0 | File "/tmp/tmpgo4_j1ej/tmpt_qkizvl.py", line 4
print "%.3f %.3f %.3f %.3f %.3f"%(x,y,d,e,f)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
SyntaxError: Missing parentheses in call to 'print'. Did you mean print(...)?
| |
s167969622 | p00004 | u512342660 | 1451371817 | Python | Python | py | Runtime Error | 0 | 0 | 3 | hoe | Traceback (most recent call last):
File "/tmp/tmp_0xpme7z/tmpu4p663vp.py", line 1, in <module>
hoe
NameError: name 'hoe' is not defined
| |
s776147188 | p00004 | u650459696 | 1454998221 | Python | Python3 | py | Runtime Error | 0 | 0 | 289 | import sys
ary=[]
ans=[]
def solve(a,b,c,d,e,f):
x=(c-b*f/e)/(a-b*d/e)
y=(c-a*f/d)/(b-a*e/d)
return [x,y]
for i in sys.stdin:
ary.append(list(map(int,i.split())))
ans.append(solve(*ary[-1]))
for i in range(len(ans)):
print('{0:.4f} {1:.4f}' .format(*ans[i])) | ||
s234521507 | p00004 | u650459696 | 1454998361 | Python | Python3 | py | Runtime Error | 0 | 0 | 289 | import sys
ary=[]
ans=[]
def solve(a,b,c,d,e,f):
x=(c-b*f/e)/(a-b*d/e)
y=(c-a*f/d)/(b-a*e/d)
return [x,y]
for i in sys.stdin:
ary.append(list(map(int,i.split())))
ans.append(solve(*ary[-1]))
for i in range(len(ans)):
print('{0:.3f} {1:.3f}' .format(*ans[i])) | ||
s687920023 | p00004 | u650459696 | 1454999526 | Python | Python3 | py | Runtime Error | 0 | 0 | 302 | import sys
ary=[]
ans=[]
def solve(a,b,c,d,e,f):
x=round((c-b*f/e)/(a-b*d/e),3)
y=round((c-a*f/d)/(b-a*e/d),3)
return [x,y]
for i in sys.stdin:
ary.append(list(map(int,i.split())))
ans.append(solve(*ary[-1]))
for i in range(len(ans)):
print('{0:.3f} {1:.3f}'.format(*ans[i])) | ||
s891142132 | p00004 | u982618289 | 1455120002 | Python | Python3 | py | Runtime Error | 0 | 0 | 205 | while 1:
i = input().split()
if i ==0:
break
else:
a, b, c, d, e, f = map(float, i)
x = (e*c - b*f)/(e*a - b*d)
y = (c*d - f*a)/(d*b - e *a)
print(x,y) | Traceback (most recent call last):
File "/tmp/tmpxg24xsq2/tmpryp1ppk_.py", line 2, in <module>
i = input().split()
^^^^^^^
EOFError: EOF when reading a line
| |
s814833628 | p00004 | u982618289 | 1455120062 | Python | Python3 | py | Runtime Error | 0 | 0 | 207 | while 1:
i = input().split()
if i == []:
break
else:
a, b, c, d, e, f = map(float, i)
x = (e*c - b*f)/(e*a - b*d)
y = (c*d - f*a)/(d*b - e *a)
print(x,y) | Traceback (most recent call last):
File "/tmp/tmpn90o55uu/tmpdjj01vpo.py", line 2, in <module>
i = input().split()
^^^^^^^
EOFError: EOF when reading a line
| |
s099941653 | p00004 | u982618289 | 1455120192 | Python | Python3 | py | Runtime Error | 0 | 0 | 209 | while 1:
i = input().split()
if i == None:
break
else:
a, b, c, d, e, f = map(float, i)
x = (e*c - b*f)/(e*a - b*d)
y = (c*d - f*a)/(d*b - e *a)
print(x,y) | Traceback (most recent call last):
File "/tmp/tmpujvt1uoa/tmpdrqh2hdq.py", line 2, in <module>
i = input().split()
^^^^^^^
EOFError: EOF when reading a line
| |
s516591246 | p00004 | u982618289 | 1455120236 | Python | Python3 | py | Runtime Error | 0 | 0 | 209 | while 1:
i = input()
if i == None:
break
else:
a, b, c, d, e, f = map(float, i.split())
x = (e*c - b*f)/(e*a - b*d)
y = (c*d - f*a)/(d*b - e *a)
print(x,y) | Traceback (most recent call last):
File "/tmp/tmp0anbbcms/tmp71fsadsw.py", line 2, in <module>
i = input()
^^^^^^^
EOFError: EOF when reading a line
| |
s263008115 | p00004 | u982618289 | 1455120279 | Python | Python3 | py | Runtime Error | 0 | 0 | 126 | while 1:
a, b, c, d, e, f = map(float, i)
x = (e*c - b*f)/(e*a - b*d)
y = (c*d - f*a)/(d*b - e *a)
print(x,y) | Traceback (most recent call last):
File "/tmp/tmp6fs1f9xx/tmpq2y66ieq.py", line 2, in <module>
a, b, c, d, e, f = map(float, i)
^
NameError: name 'i' is not defined. Did you mean: 'id'?
| |
s057544212 | p00004 | u982618289 | 1455121240 | Python | Python3 | py | Runtime Error | 0 | 0 | 277 | while True:
try:
a, b, c, d, e, f = map(float, input().split())
det = e*a - b*d
x = (e*c - b*f)/det
y = (f*a - c*d)/det
if x == 0:x=0
if y==0:y=0
print("{0:.3f} {1:.3f)".format(x,y))
except EOFError:
break | ||
s730274160 | p00004 | u982618289 | 1455121275 | Python | Python3 | py | Runtime Error | 0 | 0 | 280 | while True:
try:
a, b, c, d, e, f = map(float, input().split(" "))
det = e*a - b*d
x = (e*c - b*f)/det
y = (f*a - c*d)/det
if x == 0:x=0
if y==0:y=0
print("{0:.3f} {1:.3f)".format(x,y))
except EOFError:
break | ||
s012988838 | p00004 | u982618289 | 1455121383 | Python | Python3 | py | Runtime Error | 0 | 0 | 265 | while(True):
try:
a, b, c, d, e, f = map(float, input().split(" "))
det = e*a - b*d
if det !=0:
x = (e*c - b*f)/det
y = (f*a - c*d)/det
print("{:.3f} {:.3f)".format(x,y))
except EOFError:
break | ||
s975903548 | p00004 | u982618289 | 1455121489 | Python | Python3 | py | Runtime Error | 0 | 0 | 269 | while(True):
try:
a, b, c, d, e, f = map(float, input().split(" "))
det = e*a - b*d
if det !=0:
x = (e*c - b*f)/det
y = (f*a - c*d)/det
print("{:.3f} {:.3f)".format(x+0,y+0))
except EOFError:
break |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.