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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
s273197198 | p02410 | u724923896 | 1454991294 | Python | Python | py | Runtime Error | 0 | 0 | 174 | n, m = input()
A = []
b = []
c = 0
for i in range(n):
A += [map(int, raw_input().split())]
for j in range(m):
b += [input()]
c += A[i][j] * b[j]
print c | File "/tmp/tmpmyxkjo41/tmp9oyfcnsn.py", line 11
print c
^^^^^^^
SyntaxError: Missing parentheses in call to 'print'. Did you mean print(...)?
| |
s137402089 | p02410 | u724923896 | 1454991392 | Python | Python | py | Runtime Error | 0 | 0 | 197 | n, m = map(int, raw_input().split())
A = []
b = []
c = 0
for i in range(n):
A += [map(int, raw_input().split())]
for j in range(m):
b += [input()]
c += A[i][j] * b[j]
print c | File "/tmp/tmpf8ehrqrx/tmp31x9ic6s.py", line 11
print c
^^^^^^^
SyntaxError: Missing parentheses in call to 'print'. Did you mean print(...)?
| |
s443917546 | p02410 | u724923896 | 1454991530 | Python | Python | py | Runtime Error | 0 | 0 | 216 | n, m = input()
A = []
b = []
c = 0
for i in range(n):
A += [map(int, raw_input().split())]
for j in range(m):
b += [input()]
for i in range(n):
for j in range(m):
c += A[i][j] * b[j]
print c | File "/tmp/tmpm5k_vdp6/tmpwdwhj6p_.py", line 15
print c
^^^^^^^
SyntaxError: Missing parentheses in call to 'print'. Did you mean print(...)?
| |
s170556766 | p02410 | u724923896 | 1454991672 | Python | Python | py | Runtime Error | 0 | 0 | 234 | n, m = input()
A = []
b = []
for i in range(0, n):
A += [map(int, raw_input().split())]
for j in range(0, m):
b += [input()]
for i in range(0, n):
c = 0
for j in range(0, m):
c += A[i][j] * b[j]
print c | File "/tmp/tmpwlfhsj0b/tmpj5chdglg.py", line 15
print c
^^^^^^^
SyntaxError: Missing parentheses in call to 'print'. Did you mean print(...)?
| |
s809201091 | p02410 | u724923896 | 1454991712 | Python | Python | py | Runtime Error | 0 | 0 | 222 | n, m = input()
A = []
b = []
for i in range(n):
A += [map(int, raw_input().split())]
for j in range(m):
b += [input()]
for i in range(n):
c = 0
for j in range(m):
c += A[i][j] * b[j]
print c | File "/tmp/tmp9ukw6o3f/tmpyix_8xct.py", line 15
print c
^^^^^^^
SyntaxError: Missing parentheses in call to 'print'. Did you mean print(...)?
| |
s404559742 | p02410 | u078762447 | 1455006904 | Python | Python | py | Runtime Error | 10 | 6476 | 371 | n,m = map(int,raw_input().split())
a = [[0 for i in range (m)]for j in range(n)]
b = [0 for i in range(m)]
c = [0 for i in range(m)]
for i in range(n):
x = map(int,raw_input().split())
for j in range(m):
a[i][j] = x[j]
for i in range(m):
b[i] = int(raw_input())
for i in range(n):
for j in rang... | File "/tmp/tmpoiousx6d/tmpi4u9ntwm.py", line 16
print c[i]
^^^^^^^^^^
SyntaxError: Missing parentheses in call to 'print'. Did you mean print(...)?
| |
s360524537 | p02410 | u532962080 | 1455014031 | Python | Python | py | Runtime Error | 0 | 0 | 240 | n,m = map(int,raw_input().split())
for i in range(n):
a = []
a.append(map(int, raw_input().split()))
for i in range(m):
b = []
b.append(input())
for i in range(n):
ans = 0
for j in range(m):
ans += a[i][j]*b[j]
print ans | File "/tmp/tmpj73xfbnz/tmpag6xkmmr.py", line 13
print ans
^^^^^^^^^
SyntaxError: Missing parentheses in call to 'print'. Did you mean print(...)?
| |
s865931924 | p02410 | u532962080 | 1455014038 | Python | Python | py | Runtime Error | 0 | 0 | 240 | n,m = map(int,raw_input().split())
for i in range(n):
a = []
a.append(map(int, raw_input().split()))
for i in range(m):
b = []
b.append(input())
for i in range(n):
ans = 0
for j in range(m):
ans += a[i][j]*b[j]
print ans | File "/tmp/tmp40nvd8to/tmpd0ociy87.py", line 13
print ans
^^^^^^^^^
SyntaxError: Missing parentheses in call to 'print'. Did you mean print(...)?
| |
s153268079 | p02410 | u532962080 | 1455014053 | Python | Python | py | Runtime Error | 0 | 0 | 238 | n,m = map(int,raw_input().split())
a = []
b = []
for i in range(n):
a.append(map(int, raw_input().split()))
for i in range(m):
b.append(input())
for i in range(n):
ans = 0
for j in range(m):
ans += a[i][j]*b[j]
print ans | File "/tmp/tmp1d8qi50t/tmpcwyw15wa.py", line 2
a = []
IndentationError: unexpected indent
| |
s243061540 | p02410 | u532962080 | 1455014090 | Python | Python | py | Runtime Error | 0 | 0 | 236 | n,m = map(int,raw_input().split())
for i in range(n):
a = []
a.append(map(int, raw_input().split()))
for i in range(m):
b = []
b.append(input())
for i in range(n):
ans = 0
for j in range(m):
ans += a[i][j]*b[j]
print ans | File "/tmp/tmpd3gl4g90/tmpczf7ygmb.py", line 12
print ans
^^^^^^^^^
SyntaxError: Missing parentheses in call to 'print'. Did you mean print(...)?
| |
s649175434 | p02410 | u974554153 | 1455019698 | Python | Python | py | Runtime Error | 0 | 0 | 239 | n,m = map(int,raw_input().split())
a = []
b = []
for i in range(n):
a.append(map(int, raw_input().split()))
for i in range(m):
b.append(input())
for i in range(n):
ans = 0
for j in range(m):
ans += a[i][j]*b[j]
print ans: | File "/tmp/tmp17qqxmmy/tmpzfpf3i2h.py", line 13
print ans:
^^^^^^^^^
SyntaxError: Missing parentheses in call to 'print'. Did you mean print(...)?
| |
s646522796 | p02410 | u834416077 | 1455028301 | Python | Python | py | Runtime Error | 0 | 0 | 304 | n, m = map(int,raw_input().split())
A = [[0 for j in range(m)] for i in range(n)]
b = [0 for j in range(m)]
for i in range(n):
A[i] = map(int, raw_input().split())
for j in range(m):
b[j] = raw_input()
for i in range(n):
c = 0
for j in range(m):
c += A[i][j] * b[j]
print c | File "/tmp/tmpfu63j30t/tmp2ydfjo8n.py", line 15
print c
^^^^^^^
SyntaxError: Missing parentheses in call to 'print'. Did you mean print(...)?
| |
s959549733 | p02410 | u075836834 | 1457535156 | Python | Python3 | py | Runtime Error | 0 | 0 | 230 | n,m = [int(i) for i in input().split()]
A=[]
b=[]
for i in range(m):
A.append([int(j) for j in inpur().split()])
for i in range(m):
b.append(int(input()))
for i in range(n):
s = 0
for j in range(m):
s+=A[i][j]*b[j]
print(s) | Traceback (most recent call last):
File "/tmp/tmp7qu6ljaa/tmpl3tt5opx.py", line 1, in <module>
n,m = [int(i) for i in input().split()]
^^^^^^^
EOFError: EOF when reading a line
| |
s245105733 | p02410 | u075836834 | 1457535167 | Python | Python3 | py | Runtime Error | 0 | 0 | 230 | n,m = [int(i) for i in input().split()]
A=[]
b=[]
for i in range(m):
A.append([int(j) for j in input().split()])
for i in range(m):
b.append(int(input()))
for i in range(n):
s = 0
for j in range(m):
s+=A[i][j]*b[j]
print(s) | Traceback (most recent call last):
File "/tmp/tmpi6n7r9p3/tmp6jitujdq.py", line 1, in <module>
n,m = [int(i) for i in input().split()]
^^^^^^^
EOFError: EOF when reading a line
| |
s996227060 | p02410 | u075836834 | 1457535373 | Python | Python3 | py | Runtime Error | 0 | 0 | 232 | n,m = [int(i) for i in input().split()]
A=[]
b=[]
for i in range(m):
A.append([int(j) for j in input().split()])
for i in range(m):
b.append(int(input()))
for i in range(n):
s = 0
for j in range(m):
s+=A[i][j]*b[j]
print(s) | Traceback (most recent call last):
File "/tmp/tmp0y5z1sek/tmpzxl8e6kj.py", line 1, in <module>
n,m = [int(i) for i in input().split()]
^^^^^^^
EOFError: EOF when reading a line
| |
s848571343 | p02410 | u075836834 | 1457535388 | Python | Python3 | py | Runtime Error | 0 | 0 | 230 | n,m = [int(i) for i in input().split()]
A=[]
b=[]
s=0
for i in range(m):
A.append([int(j) for j in input().split()])
for i in range(m):
b.append(int(input()))
for i in range(n):
for j in range(m):
s+=A[i][j]*b[j]
print(s) | Traceback (most recent call last):
File "/tmp/tmp0hdu9hts/tmpcd41mv28.py", line 1, in <module>
n,m = [int(i) for i in input().split()]
^^^^^^^
EOFError: EOF when reading a line
| |
s158250670 | p02410 | u146647066 | 1462102874 | Python | Python | py | Runtime Error | 0 | 0 | 254 | import numpy as np
tate,yoko=map(int,raw_input().split())
A=[]
b=[]
for i in range(tate):
A.append(map(int, raw_input().split()))
for j in range(yoko):
b.append(input())
Anp=np.array(A)
bnp=np.array(b)
cnp=Anp.dot(b)
for ele in cnp:
print ele | File "/tmp/tmpx82vvnt8/tmpfm0aauc5.py", line 13
print ele
^^^^^^^^^
SyntaxError: Missing parentheses in call to 'print'. Did you mean print(...)?
| |
s570648098 | p02410 | u146647066 | 1462102954 | Python | Python | py | Runtime Error | 0 | 0 | 254 | import numpy as np
tate,yoko=map(int,raw_input().split())
A=[]
b=[]
for i in range(tate):
A.append(map(int, raw_input().split()))
for j in range(yoko):
b.append(input())
Anp=np.array(A)
bnp=np.array(b)
cnp=Anp.dot(b)
for ele in cnp:
print ele | File "/tmp/tmpjre12ixj/tmp784mhth9.py", line 13
print ele
^^^^^^^^^
SyntaxError: Missing parentheses in call to 'print'. Did you mean print(...)?
| |
s562186935 | p02410 | u074121480 | 1462692646 | Python | Python3 | py | Runtime Error | 0 | 0 | 279 | import numpy as np
m1 = []
m2 = []
n, m = map(int, input().split())
for _ in range(n):
m1.append([int(x) for x in input().split()])
for _ in range(m):
m2.append([int(input())])
m1 = np.matrix(m1)
m2 = np.matrix(m2)
ans = m1 * m2
for i in range(n):
print(ans[i, 0]) | Traceback (most recent call last):
File "/tmp/tmpyvs23ovk/tmp0brqhesf.py", line 5, in <module>
n, m = map(int, input().split())
^^^^^^^
EOFError: EOF when reading a line
| |
s553598024 | p02410 | u074121480 | 1462692660 | Python | Python | py | Runtime Error | 0 | 0 | 279 | import numpy as np
m1 = []
m2 = []
n, m = map(int, input().split())
for _ in range(n):
m1.append([int(x) for x in input().split()])
for _ in range(m):
m2.append([int(input())])
m1 = np.matrix(m1)
m2 = np.matrix(m2)
ans = m1 * m2
for i in range(n):
print(ans[i, 0]) | Traceback (most recent call last):
File "/tmp/tmp4bryzvr6/tmpeftiyh4c.py", line 5, in <module>
n, m = map(int, input().split())
^^^^^^^
EOFError: EOF when reading a line
| |
s691481945 | p02410 | u104931506 | 1464638654 | Python | Python3 | py | Runtime Error | 0 | 0 | 298 | n, m = list(map(int, input().split()))
A = [[0 for w in range(m)] for h in range(n)]
B = [0 for h in range(m)]
for i in range(n):
A[i] = list(map(int, input().split()))
for i in range(m):
B[i] = int(input())
for i in range(n):
c = 0
for = j in range(m):
c += A[i][j] * B[j]
print(c) | File "/tmp/tmpsu716u0v/tmpybxe1y5z.py", line 10
for = j in range(m):
^
SyntaxError: invalid syntax
| |
s350910667 | p02410 | u858901574 | 1465048199 | Python | Python | py | Runtime Error | 0 | 0 | 281 | import sys
import math
import numpy as np
n, m = map(int, raw_input().split())
A = np.zeros([n, m])
b = np.zeros([m, 1])
for i in xrange(n) :
A[i] = map(int, raw_input().split())
for i in xrange(m) :
b[i] = input()
c = A.dot(b)
for i in xrange(n) :
print int(c[i]) | File "/tmp/tmp85nx9vrp/tmp39kpjxtb.py", line 18
print int(c[i])
^^^^^^^^^^^^^^^
SyntaxError: Missing parentheses in call to 'print'. Did you mean print(...)?
| |
s338115687 | p02410 | u617990214 | 1465468415 | Python | Python | py | Runtime Error | 0 | 0 | 750 | import numpy as np
#def area##################################
def zero(n):
c=list()
for i in range(n):
c+=[0]
return c
###########################################
f_input=map( int,raw_input().split(" ") )
vec=f_input[0]
col=f_input[1]
#zero teigi
null=list()
for i in range(vec):
null.append(zero(col))
... | File "/tmp/tmppfpawuvz/tmpn0hz7q_d.py", line 48
print N
^^^^^^^
SyntaxError: Missing parentheses in call to 'print'. Did you mean print(...)?
| |
s310985977 | p02410 | u617990214 | 1465468712 | Python | Python | py | Runtime Error | 0 | 0 | 782 | import numpy as np
#def area##################################
def zero(n):
c=list()
for i in range(n):
c+=[0]
return c
###########################################
f_input=map( int,raw_input().split(" ") )
vec=f_input[0]
col=f_input[1]
#zero teigi
null=list()
for i in range(vec):
null.append(zero(col))
... | File "/tmp/tmp8vx0qvq5/tmpo6ykufwh.py", line 63
print int(sol[i])
^^^^^^^^^^^^^^^^^
SyntaxError: Missing parentheses in call to 'print'. Did you mean print(...)?
| |
s072897478 | p02410 | u617990214 | 1465468903 | Python | Python | py | Runtime Error | 0 | 0 | 782 | import numpy as np
#def area##################################
def zero(n):
c=list()
for i in range(n):
c+=[0]
return c
###########################################
f_input=map( int,raw_input().split(" ") )
vec=f_input[0]
col=f_input[1]
#zero teigi
null=list()
for i in range(vec):
null.append(zero(col))
... | File "/tmp/tmpfi9k26wj/tmpppwcsbzu.py", line 63
print int(sol[i])
^^^^^^^^^^^^^^^^^
SyntaxError: Missing parentheses in call to 'print'. Did you mean print(...)?
| |
s482801422 | p02410 | u617990214 | 1465469000 | Python | Python | py | Runtime Error | 0 | 0 | 782 | import numpy as np
#def area##################################
def zero(n):
c=list()
for i in range(n):
c+=[0]
return c
###########################################
f_input=map( int,raw_input().split(" ") )
vec=f_input[0]
col=f_input[1]
#zero teigi
null=list()
for i in range(vec):
null.append(zero(col))
... | File "/tmp/tmpb172ze2i/tmp1_ztywy6.py", line 63
print int(sol[i])
^^^^^^^^^^^^^^^^^
SyntaxError: Missing parentheses in call to 'print'. Did you mean print(...)?
| |
s132904721 | p02410 | u617990214 | 1465469067 | Python | Python | py | Runtime Error | 0 | 0 | 505 | import numpy as np
def zero(n):
c=list()
for i in range(n):
c+=[0]
return c
f_input=map( int,raw_input().split(" ") )
vec=f_input[0]
col=f_input[1]
null=list()
for i in range(vec):
null.append(zero(col))
cvarea=np.matrix(null)
k=list()
for i in range(col):
k+=[[0]]
k=np.matrix(k)
varea=k
for i in rang... | File "/tmp/tmpuwnxtku0/tmpbwdoc3m9.py", line 40
print int(sol[i])
^^^^^^^^^^^^^^^^^
SyntaxError: Missing parentheses in call to 'print'. Did you mean print(...)?
| |
s150755441 | p02410 | u617990214 | 1465620261 | Python | Python | py | Runtime Error | 0 | 0 | 782 | import numpy as np
#def area##################################
def zero(n):
c=list()
for i in range(n):
c+=[0]
return c
###########################################
f_input=map( int,raw_input().split(" ") )
vec=f_input[0]
col=f_input[1]
#zero teigi
null=list()
for i in range(vec):
null.append(zero(col))
... | File "/tmp/tmpmfm4ds1y/tmpabz0mr30.py", line 63
print int(sol[i])
^^^^^^^^^^^^^^^^^
SyntaxError: Missing parentheses in call to 'print'. Did you mean print(...)?
| |
s699660856 | p02410 | u617990214 | 1465620280 | Python | Python | py | Runtime Error | 0 | 0 | 782 | import numpy as np
#def area##################################
def zero(n):
c=list()
for i in range(n):
c+=[0]
return c
###########################################
f_input=map( int,raw_input().split(" ") )
vec=f_input[0]
col=f_input[1]
#zero teigi
null=list()
for i in range(vec):
null.append(zero(col))
... | File "/tmp/tmp_adyl474/tmpj_1_p7pj.py", line 63
print int(sol[i])
^^^^^^^^^^^^^^^^^
SyntaxError: Missing parentheses in call to 'print'. Did you mean print(...)?
| |
s783576420 | p02410 | u391228754 | 1467228859 | Python | Python3 | py | Runtime Error | 40 | 7712 | 326 | n, m = map(int, input().split())
a =[[0 for i in range(n)]for j in range(m)]
for i in range(n):
a[i] = list(map(int, input().split()))
b = [0 for j in range(m)]
for j in range(m):
b[j] = int(input())
c = [0 for i in range(n)]
for i in range(n):
for j in range(m):
c[i] += a[i][j] * b[j]
print... | Traceback (most recent call last):
File "/tmp/tmpjiv567p4/tmpqq2mljl7.py", line 1, in <module>
n, m = map(int, input().split())
^^^^^^^
EOFError: EOF when reading a line
| |
s156633204 | p02410 | u765849500 | 1468290521 | Python | Python | py | Runtime Error | 0 | 0 | 255 | a,b = map(int, raw_input().split)
gA = []
gb = []
for i in range(a):
gA.append(map(int, raw_input().split()))
for i in range(b):
gb.append(input())
for i in range(a):
ans = 0
for j in range(b):
ans += gA[i][j] * gb[j]
print ans | File "/tmp/tmpqa8sujgu/tmpvka91vog.py", line 12
print ans
^^^^^^^^^
SyntaxError: Missing parentheses in call to 'print'. Did you mean print(...)?
| |
s897540306 | p02410 | u204883389 | 1469689448 | Python | Python3 | py | Runtime Error | 0 | 0 | 392 | def solve(n, m, a, b):
res = []
for i in range(n):
s = [a[i][j] * b[j] for j in range(m)]
res.append(sum(s))
return res
if __name__ == '__main__':
n, m = [int(i) for i in input().split()]
a = [[int(i) for i in input().split()] for _ in range(n)]
b = [int(i) for i in input().spli... | File "/tmp/tmpjcp75t7t/tmpgn_g72kw.py", line 11
b = [int(i) for i in input().split()] for _ in range(m)]
^
SyntaxError: unmatched ']'
| |
s444288861 | p02410 | u204883389 | 1470111919 | Python | Python3 | py | Runtime Error | 0 | 0 | 368 | def solve(n, m, a, b):
res = []
for i in range(n):
s = [a[i][j] * b[j] for j in range(m)]
res.append(sum(s))
return res
if __name__ == '__main__':
n, m = map(int, raw_input().split())
a = [map(int, raw_input().split()) for _ in range(n)]
b = [int(i) for i in input()) for _ in ra... | File "/tmp/tmpxhr28lvm/tmpss6nl438.py", line 11
b = [int(i) for i in input()) for _ in range(m)]
^
SyntaxError: closing parenthesis ')' does not match opening parenthesis '['
| |
s268776927 | p02410 | u510829608 | 1470113000 | Python | Python3 | py | Runtime Error | 30 | 7672 | 313 | a = []; b = []; c = []
n, m = map(int, input().split())
for i in range(n):
row = map(int, input().split())
a.append(list(row))
for j in range(m):
col = int(input())
b.append(col)
for k in range(n):
temp = 0
for l in range(m):
temp += a[k][l] * b[l]
c.append(temp)
print(c[0])
print(c[1])
print(c[2]) | Traceback (most recent call last):
File "/tmp/tmp8v3_zm09/tmp83cw7kzv.py", line 2, in <module>
n, m = map(int, input().split())
^^^^^^^
EOFError: EOF when reading a line
| |
s751350780 | p02410 | u498041957 | 1470113039 | Python | Python3 | py | Runtime Error | 0 | 0 | 227 | n, m = [int(i) for i in input().split()]
matrix = []
for ni in range(n):
matrix.append([int(a) for a in input().split])
vector = []
for mi in range(m):
vector.append(int(input()))
print(matrix)
print()
print(vector) | Traceback (most recent call last):
File "/tmp/tmppmbfimwj/tmpxpzujo62.py", line 1, in <module>
n, m = [int(i) for i in input().split()]
^^^^^^^
EOFError: EOF when reading a line
| |
s230079765 | p02410 | u435917115 | 1470113156 | Python | Python3 | py | Runtime Error | 0 | 0 | 316 | n, m = [int(i) for i in input().split()]
matrix = []
for ni in range(n):
matrix.append([int(a) for a in input().split])
vector = []
for mi in range(m):
vector.append(int(input()))
for ni in range(n):
sum = 0
for mi in range(m):
sum += matrix[ni][mi] * vector[mi]
print(m) | Traceback (most recent call last):
File "/tmp/tmpasoq8129/tmp39nrtwmf.py", line 1, in <module>
n, m = [int(i) for i in input().split()]
^^^^^^^
EOFError: EOF when reading a line
| |
s811318998 | p02410 | u085472528 | 1470113162 | Python | Python3 | py | Runtime Error | 0 | 0 | 306 | int(i) for i in input().split()]
matrix = []
for ni in range(n):
matrix.append([int(a) for a in input().split()])
vector = []
for mi in range(m):
vector.append(int(input()))
b = []
for ni in range(n):
sum = 0
for mi in range(m):
sum += matrix[ni][mi] * vector[mi]
print(sum) | File "/tmp/tmpm8y07piw/tmp4aehjx6b.py", line 1
int(i) for i in input().split()]
^
SyntaxError: unmatched ']'
| |
s020737422 | p02410 | u600195957 | 1470113184 | Python | Python3 | py | Runtime Error | 0 | 0 | 313 | n, m = [int(i) for i in input().split()
matrix = []
for ni in range(n):
matrix.append([int(a) for a in input().split()])
vector = []
for mi in range(m):
vector.append(int(input()))
b = []
for ni in range(n):
sum = 0
for mi in range(m):
sum += matrix[ni][mi] * vector[mi]
print(sum) | File "/tmp/tmpbzr052_n/tmp8x9sjqqc.py", line 1
n, m = [int(i) for i in input().split()
^
SyntaxError: '[' was never closed
| |
s122276347 | p02410 | u085472528 | 1470113225 | Python | Python3 | py | Runtime Error | 0 | 0 | 297 | t(i) for i in input().split()]
matrix = []
for ni in range(n):
matrix.append([int(a) for a in input().split()])
vector = []
for mi in range(m):
vector.append(int(input()))
for ni in range(n):
sum = 0
for mi in range(m):
sum += matrix[ni][mi] * vector[mi]
print(sum) | File "/tmp/tmp07h2_9uq/tmp5qc6ipsb.py", line 1
t(i) for i in input().split()]
^
SyntaxError: unmatched ']'
| |
s034381036 | p02410 | u435917115 | 1470113249 | Python | Python3 | py | Runtime Error | 0 | 0 | 316 | n, m = [int(i) for i in input().split()]
matrix = []
for ni in range(n):
matrix.append([int(a) for a in input().split])
vector = []
for mi in range(m):
vector.append(int(input()))
for ni in range(n):
sum = 0
for mi in range(m):
sum += matrix[ni][mi] * vector[mi]
print(m) | Traceback (most recent call last):
File "/tmp/tmpnr4jdiyv/tmppotmdj0j.py", line 1, in <module>
n, m = [int(i) for i in input().split()]
^^^^^^^
EOFError: EOF when reading a line
| |
s691457448 | p02410 | u435917115 | 1470113294 | Python | Python3 | py | Runtime Error | 0 | 0 | 318 | n, m = [int(i) for i in input().split()]
matrix = []
for ni in range(n):
matrix.append([int(a) for a in input().split])
vector = []
for mi in range(m):
vector.append(int(input()))
for ni in range(n):
sum = 0
for mi in range(m):
sum += matrix[ni][mi] * vector[mi]
print(sum) | Traceback (most recent call last):
File "/tmp/tmpk4orpcs4/tmpx0z886zb.py", line 1, in <module>
n, m = [int(i) for i in input().split()]
^^^^^^^
EOFError: EOF when reading a line
| |
s580932188 | p02410 | u600195957 | 1470113295 | Python | Python3 | py | Runtime Error | 0 | 0 | 318 | n, m = [int(i) for i in input().split()
matrix = []
for ni in range(n):
matrix.append([int(a) for a in input().split()])
vector = []
for mi in range(m):
vector.append(int(input()))
b = []
for ni in range(n):
sum = 0
for mi in range(m):
sum += matrix[ni][mi] * vector[mi]
print(sum) | File "/tmp/tmphzhks1xi/tmpob_5dny7.py", line 1
n, m = [int(i) for i in input().split()
^
SyntaxError: '[' was never closed
| |
s379882470 | p02410 | u628732336 | 1470113305 | Python | Python3 | py | Runtime Error | 0 | 0 | 349 | n, m = [int(i) for i in input().split()]
matrix = []
for ni in range(n):
matrix.append([int(a) for a in input().split()])
vector = []
for ni in range(n):
vector.append(int(input()))
for ni in range(n):
sum = 0
for mi in range(m):
sum += matrix[ni][mi] * vector[mi]
print(sum)
print(... | Traceback (most recent call last):
File "/tmp/tmprynrwpqk/tmpmjjfpcz9.py", line 1, in <module>
n, m = [int(i) for i in input().split()]
^^^^^^^
EOFError: EOF when reading a line
| |
s960348131 | p02410 | u628732336 | 1470113343 | Python | Python3 | py | Runtime Error | 0 | 0 | 307 | n, m = [int(i) for i in input().split()]
matrix = []
for ni in range(n):
matrix.append([int(a) for a in input().split()])
vector = []
for ni in range(n):
vector.append(int(input()))
for ni in range(n):
sum = 0
for mi in range(m):
sum += matrix[ni][mi] * vector[mi]
print(sum) | Traceback (most recent call last):
File "/tmp/tmp3lnko9gn/tmp6lmhmmyl.py", line 1, in <module>
n, m = [int(i) for i in input().split()]
^^^^^^^
EOFError: EOF when reading a line
| |
s555544716 | p02410 | u628732336 | 1470113391 | Python | Python3 | py | Runtime Error | 0 | 0 | 314 | n, m = [int(i) for i in input().split()]
matrix = []
for ni in range(n):
matrix.append([int(a) for a in input().split()])
vector = []
for ni in range(n):
vector.append(int(input()))
b = []
for ni in range(n):
sum = 0
for mi in range(m):
sum += matrix[ni][mi] * vector[mi]
print(sum) | Traceback (most recent call last):
File "/tmp/tmpua8if1yf/tmp6b5asomm.py", line 1, in <module>
n, m = [int(i) for i in input().split()]
^^^^^^^
EOFError: EOF when reading a line
| |
s212258503 | p02410 | u435917115 | 1470113434 | Python | Python3 | py | Runtime Error | 0 | 0 | 314 | n, m = [int(i) for i in input().split()]
matrix = []
for ni in range(n):
matrix.append([int(a) for a in input().split])
vector = []
for mi in range(m):
vector.append(int(input()))
for ni in range(n):
sum = 0
for mi in range(m):
sum += matrix[ni][mi] * vector[mi]
print(sum) | Traceback (most recent call last):
File "/tmp/tmp09s4bisb/tmpt1w4hnxj.py", line 1, in <module>
n, m = [int(i) for i in input().split()]
^^^^^^^
EOFError: EOF when reading a line
| |
s730423600 | p02410 | u628732336 | 1470113456 | Python | Python3 | py | Runtime Error | 0 | 0 | 314 | n, m = [int(i) for i in input().split()]
matrix = []
for ni in range(n):
matrix.append([int(a) for a in input().split()])
vector = []
for mi in range(n):
vector.append(int(input()))
b = []
for ni in range(n):
sum = 0
for mi in range(m):
sum += matrix[ni][mi] * vector[mi]
print(sum) | Traceback (most recent call last):
File "/tmp/tmpvi7c_ywn/tmp9v4cqd8q.py", line 1, in <module>
n, m = [int(i) for i in input().split()]
^^^^^^^
EOFError: EOF when reading a line
| |
s198465252 | p02410 | u628732336 | 1470113470 | Python | Python3 | py | Runtime Error | 0 | 0 | 314 | n, m = [int(i) for i in input().split()]
matrix = []
for ni in range(n):
matrix.append([int(a) for a in input().split()])
vector = []
for mi in range(n):
vector.append(int(input()))
b = []
for ni in range(n):
sum = 0
for mi in range(m):
sum += matrix[ni][mi] * vector[mi]
print(sum) | Traceback (most recent call last):
File "/tmp/tmpt1bkuus6/tmp0iklzkb7.py", line 1, in <module>
n, m = [int(i) for i in input().split()]
^^^^^^^
EOFError: EOF when reading a line
| |
s452698174 | p02410 | u628732336 | 1470113499 | Python | Python3 | py | Runtime Error | 0 | 0 | 314 | n, m = [int(i) for i in input().split()]
matrix = []
for ni in range(n):
matrix.append([int(a) for a in input().split()])
vector = []
for mi in range(n):
vector.append(int(input()))
b = []
for ni in range(n):
sum = 0
for mi in range(m):
sum += matrix[ni][mi] * vector[mi]
print(sum) | Traceback (most recent call last):
File "/tmp/tmperm4jog_/tmpkimke370.py", line 1, in <module>
n, m = [int(i) for i in input().split()]
^^^^^^^
EOFError: EOF when reading a line
| |
s641729802 | p02410 | u264632995 | 1470113653 | Python | Python3 | py | Runtime Error | 0 | 0 | 313 | n, m = [int(i) for i in input().split()]
matrix = []
for ni in range(n):
matrix.append([int(a) for a in input().split()])
vector = []
for mi in range(m):
vector.append(int(input()))
for ni in range(n):
sum =0
for mi in rannge(m):
sum += matrix[ni][mi] * vector[mi]
print(sum) | Traceback (most recent call last):
File "/tmp/tmp6jmi1czd/tmpd5gwnmif.py", line 1, in <module>
n, m = [int(i) for i in input().split()]
^^^^^^^
EOFError: EOF when reading a line
| |
s196925734 | p02410 | u435917115 | 1470113733 | Python | Python3 | py | Runtime Error | 0 | 0 | 314 | n, m = [int(i) for i in input().split()]
matrix = []
for ni in range(n):
matrix.append([int(a) for a in input().split])
vector = []
for mi in range(m):
vector.append(int(input()))
for ni in range(n):
sum = 0
for mi in range(m):
sum += matrix[ni][mi] * vector[mi]
print(sum) | Traceback (most recent call last):
File "/tmp/tmpv486ht7o/tmposuxngoo.py", line 1, in <module>
n, m = [int(i) for i in input().split()]
^^^^^^^
EOFError: EOF when reading a line
| |
s426312374 | p02410 | u216425054 | 1470749730 | Python | Python3 | py | Runtime Error | 30 | 7696 | 360 | n,m=[int(x) for x in input().split()]
A=[[0 for i in range(m)] for i in range(m)]
vector=[0 for i in range(m)]
result=[0 for i in range(n)]
for i in range(n):
A[i]=[int(x) for x in input().split()]
for i in range(m):
vector[i]=int(input())
for i in range(n):
for j in range(m):
result[i] += A[i][j]*... | Traceback (most recent call last):
File "/tmp/tmphebzmtx8/tmpph03arrc.py", line 1, in <module>
n,m=[int(x) for x in input().split()]
^^^^^^^
EOFError: EOF when reading a line
| |
s165184882 | p02410 | u216425054 | 1470749808 | Python | Python3 | py | Runtime Error | 20 | 7740 | 360 | n,m=[int(x) for x in input().split()]
A=[[0 for i in range(m)] for i in range(m)]
vector=[0 for i in range(m)]
result=[0 for i in range(n)]
for i in range(n):
A[i]=[int(x) for x in input().split()]
for i in range(m):
vector[i]=int(input())
for i in range(n):
for j in range(m):
result[i] += A[i][j]*... | Traceback (most recent call last):
File "/tmp/tmprsqmou1l/tmp5_gqg2u2.py", line 1, in <module>
n,m=[int(x) for x in input().split()]
^^^^^^^
EOFError: EOF when reading a line
| |
s590428782 | p02410 | u998435601 | 1472567918 | Python | Python | py | Runtime Error | 0 | 0 | 261 | #-*- coding: utf-8 -*-
n, m = map(int, raw_input().split())
mx = [] * n
for i in xrange(n):
mx[i] = map(int, raw_input().split())
v = [0] * m
for i in xrange(m):
v[i] = input()
for i in xrange(n):
t = 0
for j in xrange(m):
t += mx[i][j] * v[j]
print t | File "/tmp/tmpqt46cl2j/tmpl0j6z3n5.py", line 16
print t
^^^^^^^
SyntaxError: Missing parentheses in call to 'print'. Did you mean print(...)?
| |
s385571599 | p02410 | u086566114 | 1479468073 | Python | Python | py | Runtime Error | 0 | 0 | 33 | import numpy as np
print("hello") | hello
| |
s045391384 | p02410 | u086566114 | 1479470455 | Python | Python | py | Runtime Error | 0 | 0 | 361 | [n, m] = [int(x) for x in raw_input().split()]
A = []
B = [0] * m
counter = 0
while counter < n:
A.append([int(x) for x in raw_input().split()])
counter += 1
B[counter] = [int(raw_input()) for j in range(m)]
counter = 0
while counter < n:
result = 0
for j in range(m):
result += A[counter][j] ... | Traceback (most recent call last):
File "/tmp/tmpvn6l__pu/tmpumvws19f.py", line 1, in <module>
[n, m] = [int(x) for x in raw_input().split()]
^^^^^^^^^
NameError: name 'raw_input' is not defined
| |
s756645021 | p02410 | u854978981 | 1479879539 | Python | Python3 | py | Runtime Error | 30 | 7736 | 378 | n, m = [int (x) for x in input().split(' ')]
a = [[0 for i in range(n)] for j in range(m)]
b = [0 for i in range(m)]
c = [0 for i in range(n)]
for s in range(0,n):
a[s] = [int (x) for x in input().split(' ')]
for s in range(0,m):
b[s] = int(input())
for s in range(0,n):
for t in range(0,m):
c[s] += ... | Traceback (most recent call last):
File "/tmp/tmpawlhff0y/tmphlkvcrf8.py", line 1, in <module>
n, m = [int (x) for x in input().split(' ')]
^^^^^^^
EOFError: EOF when reading a line
| |
s684819777 | p02410 | u870718588 | 1481172750 | Python | Python3 | py | Runtime Error | 0 | 0 | 349 | n, m = map(int, input().split())
a = [[0] * m] for i in range(n)]
b = [0] * m
c = [0] * n
for i in range(n):
w = list(map(int, input().split()))
for j in range(m):
a[i][j] = w[j]
for j in range(m):
b[j] = int(input())
for i in range(n):
for j in range(m):
c[i] += a[i][j] * b[j]
for i... | File "/tmp/tmpdzqq27hm/tmp2ozdm4bj.py", line 2
a = [[0] * m] for i in range(n)]
^
SyntaxError: unmatched ']'
| |
s132151299 | p02410 | u923668099 | 1482112825 | Python | Python3 | py | Runtime Error | 0 | 0 | 325 | # coding: utf-8
# Here your code !
import numpy as np
N, M = map(int, input().split())
A = []
b = []
for _ in range(N):
A.append([int(i) for i in input().split()])
for _ in range(M):
b.append([int(input())])
A = np.matrix(A)
b = np.matrix(b)
c = A.dot(b)
print("\n".join([str(int(c[i])) for i in range(... | Traceback (most recent call last):
File "/tmp/tmpukmlfyxq/tmpft9hbdr6.py", line 4, in <module>
N, M = map(int, input().split())
^^^^^^^
EOFError: EOF when reading a line
| |
s615560165 | p02410 | u918276501 | 1484216285 | Python | Python3 | py | Runtime Error | 0 | 0 | 293 | import numpy as np
n, m = map(int, input().strip().split())
a = np.zeros((n,m), dtype = int)
b = np.zeros((m,1), dtype = int)
for i in range(n):
a[i] = list(map(int, input().strip().split()))
for i in range(m):
b[i] = int(input())
c = a.dot(b)
for i in range(n):
print(c[i][0]) | Traceback (most recent call last):
File "/tmp/tmpumfr59sq/tmplzf95xir.py", line 3, in <module>
n, m = map(int, input().strip().split())
^^^^^^^
EOFError: EOF when reading a line
| |
s833137077 | p02410 | u918276501 | 1484216516 | Python | Python3 | py | Runtime Error | 0 | 0 | 293 | import numpy as np
n, m = map(int, input().strip().split())
a = np.zeros((n,m), dtype = int)
b = np.zeros((m,1), dtype = int)
for i in range(n):
a[i] = list(map(int, input().strip().split()))
for i in range(m):
b[i] = int(input())
c = a.dot(b)
for i in range(n):
print(c[i][0]) | Traceback (most recent call last):
File "/tmp/tmp8nxhlgfl/tmpkkqbrtm7.py", line 3, in <module>
n, m = map(int, input().strip().split())
^^^^^^^
EOFError: EOF when reading a line
| |
s868554395 | p02410 | u918276501 | 1484216801 | Python | Python3 | py | Runtime Error | 0 | 0 | 326 | import numpy as np
n, m = map(int, input().strip().split())
a = np.zeros((n,m), dtype = int)
b = np.zeros((m,1), dtype = int)
c = np.zeros((n,1), dtype = int)
for i in range(n):
a[i] = list(map(int, input().strip().split()))
for i in range(m):
b[i] = int(input())
c = a.dot(b)
for i in range(n):
print(c[... | Traceback (most recent call last):
File "/tmp/tmp8iezqbm0/tmp_8o61poe.py", line 3, in <module>
n, m = map(int, input().strip().split())
^^^^^^^
EOFError: EOF when reading a line
| |
s284264463 | p02410 | u918276501 | 1484217689 | Python | Python3 | py | Runtime Error | 0 | 0 | 357 | n, m = map(int, input().strip().split())
a = [[0 for j in range(m)] for i in range(n)]
b = [[0] for j in range(m)]
c = [[0] for j in range(n)]
for i in range(n):
a[i] = list(map(int, input().strip().split()))
for i in range(m):
b[i] = [int(input())]
for i in range(n):
for j in range(m):
c[0][i] ... | Traceback (most recent call last):
File "/tmp/tmp086tlx2n/tmpcgfhmhuj.py", line 1, in <module>
n, m = map(int, input().strip().split())
^^^^^^^
EOFError: EOF when reading a line
| |
s014296193 | p02410 | u104171359 | 1486530511 | Python | Python3 | py | Runtime Error | 0 | 0 | 745 | #!usr/bin/env python3
import sys
def main():
m, n = [int(col_row) for col_row in sys.stdin.readline().split()]
matrix = [[0 for col in range(m)] for row in range(n)]
vector = [0 for col in range(m)]
for row in range(n):
lst = [int(element) for element in sys.stdin.readline().split()]
... | Traceback (most recent call last):
File "/tmp/tmphsdx9s_w/tmpxlwb5h33.py", line 29, in <module>
main()
File "/tmp/tmphsdx9s_w/tmpxlwb5h33.py", line 7, in main
m, n = [int(col_row) for col_row in sys.stdin.readline().split()]
^^^^
ValueError: not enough values to unpack (expected 2, got 0)
| |
s172803295 | p02410 | u148628801 | 1486540877 | Python | Python3 | py | Runtime Error | 20 | 7768 | 391 | import sys
#fin = open("test.txt", "r")
fin = sys.stdin
n, m = map(int, fin.readline().split())
A = [[] for i in range(n)]
for i in range(n):
A[i] = list(map(int, fin.readline().split()))
b = [0 for i in range(m)]
for i in range(m):
b[i] = int(fin.readline())
c = [0 for i in range(m)]
for i in range(n):
for j... | Traceback (most recent call last):
File "/tmp/tmp03nth730/tmptwpwlkqf.py", line 6, in <module>
n, m = map(int, fin.readline().split())
^^^^
ValueError: not enough values to unpack (expected 2, got 0)
| |
s028775498 | p02410 | u548155360 | 1487224586 | Python | Python3 | py | Runtime Error | 0 | 0 | 284 | n, m = map(int, input().split())
Mat = [[]]
for i in range(n):
row = list(map(int, input().split()))
Mat.append(row)
b = []
for j in range(m):
b.append(int(input()))
c = [0 for k in range(n)]
for l in range(n):
for l2 in range(m):
c[l] += (Mat[l][l2] * b[l2])
print(c[l]) | Traceback (most recent call last):
File "/tmp/tmprqtvnyzn/tmpa8qlkg3i.py", line 1, in <module>
n, m = map(int, input().split())
^^^^^^^
EOFError: EOF when reading a line
| |
s693435161 | p02410 | u731896389 | 1487649997 | Python | Python3 | py | Runtime Error | 0 | 0 | 233 | n,m=map(int,input().split())
A =[[int(i) for i in input().split()] for j in range(n)]
b = []
for i in range(m):
b.append(int(input()))
ans = [0,0,0]
for i in range(n):
for j in range(m):
ans += A[i][j]*b[j]
print(ans) | Traceback (most recent call last):
File "/tmp/tmpos26cx19/tmps034h2n8.py", line 1, in <module>
n,m=map(int,input().split())
^^^^^^^
EOFError: EOF when reading a line
| |
s861128037 | p02410 | u731896389 | 1487650438 | Python | Python3 | py | Runtime Error | 0 | 0 | 267 | n,m=map(int,input().split())
A =[[int(i) for i in input().split()] for j in range(n)]
b = []
for i in range(m):
b.append(int(input()))
ans = [0 for i in range(m)]
for i in range(n):
for j in range(m):
ans[i] += A[i][j]*b[j]
for i in ans:
print(i)) | File "/tmp/tmp07qwu2jf/tmppv3qbal7.py", line 11
print(i))
^
SyntaxError: unmatched ')'
| |
s912345861 | p02410 | u024715419 | 1488266918 | Python | Python3 | py | Runtime Error | 0 | 0 | 245 | n,m = map(int,input().split())
a=[]
for i in range(n):
a[i] = list(map(int,input().split()))
b=[]
for i in range(m):
b.append(int(input()))
for i in range(n):
c = 0
for j in range(m):
c += a[i][j]*b[j]
print(c) | Traceback (most recent call last):
File "/tmp/tmp2mrilig3/tmpbnli4eh9.py", line 1, in <module>
n,m = map(int,input().split())
^^^^^^^
EOFError: EOF when reading a line
| |
s559206194 | p02410 | u024715419 | 1488267138 | Python | Python3 | py | Runtime Error | 0 | 0 | 332 | n,m = map(int,input().split())
a = [[0 for i in range(m)] for j in range(n)]
for i in range(n):
a_tmp = list(map(int,input().split()))
for j in range(m):
a[i][j] = a_tmp[j]
b=[]
for i in range(m):
b.append(int(input()))
for i in range(n):
c = 0
for j in range(m):
c += a[i][j]*b[j]
... | File "/tmp/tmpkkovudw8/tmpk6tq8eki.py", line 7
for j in range(m):
TabError: inconsistent use of tabs and spaces in indentation
| |
s340573107 | p02410 | u024715419 | 1488267338 | Python | Python3 | py | Runtime Error | 0 | 0 | 184 | n,m = map(int,input().split())
a = [[0 for i in range(m)] for j in range(n)]
for i in range(n):
a_tmp = list(map(int,input().split()))
for j in range(m):
a[i][j] = a_tmp[j] | File "/tmp/tmpqnh1wnpl/tmpoobuhkw8.py", line 7
for j in range(m):
TabError: inconsistent use of tabs and spaces in indentation
| |
s974297183 | p02410 | u024715419 | 1488267376 | Python | Python3 | py | Runtime Error | 0 | 0 | 184 | n,m = map(int,input().split())
a = [[0 for i in range(m)] for j in range(n)]
for i in range(n):
a_tmp = list(map(int,input().split()))
for j in range(m):
a[i][j] = a_tmp[j] | File "/tmp/tmpxaejanwx/tmptciougwa.py", line 7
for j in range(m):
TabError: inconsistent use of tabs and spaces in indentation
| |
s133956691 | p02410 | u024715419 | 1488267444 | Python | Python3 | py | Runtime Error | 0 | 0 | 332 | n,m = map(int,input().split())
a = [[0 for i in range(n)] for j in range(m)]
for i in range(n):
a_tmp = list(map(int,input().split()))
for j in range(m):
a[i][j] = a_tmp[j]
b=[]
for i in range(m):
b.append(int(input()))
for i in range(n):
c = 0
for j in range(m):
c += a[i][j]*b[j]
... | File "/tmp/tmpidsk77el/tmp5cvfvxah.py", line 7
for j in range(m):
TabError: inconsistent use of tabs and spaces in indentation
| |
s887336403 | p02410 | u011621222 | 1490086296 | Python | Python | py | Runtime Error | 0 | 0 | 212 | n,m=map(int,raw_input().split())
a,b=[],[]
for i in range(n):a.append(map(int,raw_input().split()))
for i in range(m):b.append(input())
for i in range(n):
sum=0
for j in range(m):sum+=a[i][k]*b[k]
print sum | File "/tmp/tmpo9i5zc13/tmpqzuvw5go.py", line 8
print sum
^^^^^^^^^
SyntaxError: Missing parentheses in call to 'print'. Did you mean print(...)?
| |
s327321830 | p02410 | u208157605 | 1491604843 | Python | Python3 | py | Runtime Error | 0 | 0 | 482 | pupils = []
while True:
l = list(map(int, input().split()))
if sum(l) == -3:
break
pupils.append(l)
for pupil in pupils:
score = pupil[0] + pupil[1]
if pupil[0] == -1 or pupil[1] == -1:
rank = 'F'
elif score >= 80:
rank = 'A'
elif score >= 65:
rank = 'B'
... | Traceback (most recent call last):
File "/tmp/tmp3claedae/tmp0wigax10.py", line 4, in <module>
l = list(map(int, input().split()))
^^^^^^^
EOFError: EOF when reading a line
| |
s865633495 | p02410 | u286589639 | 1492588413 | Python | Python3 | py | Runtime Error | 0 | 0 | 403 | # n*m?????????A??¨m*1??????????????????b??¨??????????¨????????????°??????
import numpy as np
n, m = map(int, input().split())
A = np.matrix([[0 for i in range(m)] for j in range(n)])
for i in range(n):
A[i] = list(map(int, input().split()))
b = np.matrix([[0] for i in range(m)])
for i in range(m):
b[i] = int... | Traceback (most recent call last):
File "/tmp/tmpmu5ap7bo/tmp3vurjo8l.py", line 4, in <module>
n, m = map(int, input().split())
^^^^^^^
EOFError: EOF when reading a line
| |
s604952189 | p02410 | u286589639 | 1492588800 | Python | Python3 | py | Runtime Error | 0 | 0 | 429 | # n*m?????????A??¨m*1??????????????????b??¨??????????¨????????????°??????
import numpy as np
n, m = map(int, input().split())
A = np.matrix([[0 for i in range(m)] for j in range(n)])
for i in range(n):
A[i] = list(map(int, input().split()))
b = np.matrix([[0] for i in range(m)])
for i in range(m):
b[i] = int... | Traceback (most recent call last):
File "/tmp/tmpczi__cls/tmplbpfqhfd.py", line 4, in <module>
n, m = map(int, input().split())
^^^^^^^
EOFError: EOF when reading a line
| |
s063523550 | p02410 | u042885182 | 1493478196 | Python | Python3 | py | Runtime Error | 0 | 0 | 520 | # coding: utf-8
# Here your code !
import numpy
def func():
try:
(n,m) = tuple( [ int(num) for num in input().rstrip().split(" ") ] )
matrix = numpy.array( [ [int(num) for num in input().rstrip().split(" ")] for i in range(n) ] )
vector = numpy.array( [ int( input().rstrip() ) for i in ran... | input error
| |
s622118840 | p02410 | u042885182 | 1493478284 | Python | Python3 | py | Runtime Error | 0 | 0 | 518 | # coding: utf-8
# Here your code !
from numpy import array, dot
def func():
try:
(n,m) = tuple( [ int(num) for num in input().rstrip().split(" ") ] )
matrix = array( [ [int(num) for num in input().rstrip().split(" ")] for i in range(n) ] )
vector = array( [ int( input().rstrip() ) for i in... | input error
| |
s868324828 | p02410 | u623167544 | 1494177203 | Python | Python | py | Runtime Error | 0 | 0 | 575 | def func(amat, bmat, nm):
for i in range(nm[0]):
ans = 0
for j in range(nm[1]):
ans += amat[i][j] * bmat[j][0]
print(ans)
if __name__ == '__main__':
nm = input().split(' ')
nm = [int(i) for i in nm]
amat = [[0 for i in range(nm[1])] for j in range(nm[0])]
bmat =... | Traceback (most recent call last):
File "/tmp/tmp_tffnv9u/tmpen_q2v76.py", line 10, in <module>
nm = input().split(' ')
^^^^^^^
EOFError: EOF when reading a line
| |
s390719266 | p02410 | u213265973 | 1494561327 | Python | Python3 | py | Runtime Error | 0 | 0 | 264 | m, n = [int (input().split(" ")]
a =[ [int(i) for i in input().split(" ")] for _ in range(n) ]
b =[]
for i in range(m):
b.append( int(input()) )
for x in range(n):
result = 0
for y in range(m):
result += a[x][y] * b[y]
print(result)
| File "/tmp/tmpyi68ek7b/tmp06n14dex.py", line 1
m, n = [int (input().split(" ")]
^
SyntaxError: closing parenthesis ']' does not match opening parenthesis '('
| |
s248687781 | p02410 | u213265973 | 1494561365 | Python | Python3 | py | Runtime Error | 0 | 0 | 264 | n, m = [int (input().split(" ")]
a =[ [int(i) for i in input().split(" ")] for _ in range(n) ]
b =[]
for i in range(m):
b.append( int(input()) )
for x in range(n):
result = 0
for y in range(m):
result += a[x][y] * b[y]
print(result)
| File "/tmp/tmpcg30suff/tmp4mllkt9j.py", line 1
n, m = [int (input().split(" ")]
^
SyntaxError: closing parenthesis ']' does not match opening parenthesis '('
| |
s570087436 | p02410 | u213265973 | 1494561492 | Python | Python3 | py | Runtime Error | 0 | 0 | 264 | n, m = [int (input().split(" ")]
a =[ [int(i) for i in input().split(" ")] for _ in range(n) ]
b =[]
for i in range(m):
b.append( int(input()) )
for x in range(n):
result = 0
for y in range(m):
result += a[x][y] * b[y]
print(result)
| File "/tmp/tmp7zkmo86s/tmp7ftgwjcd.py", line 1
n, m = [int (input().split(" ")]
^
SyntaxError: closing parenthesis ']' does not match opening parenthesis '('
| |
s540215021 | p02410 | u821624310 | 1496036290 | Python | Python3 | py | Runtime Error | 20 | 7656 | 329 | n, m = map(int, input().split())
A = [[0 for i in range(m)] for j in range(n)]
for i in range(n):
A[i][0], A[i][1], A[i][2], A[i][3] = map(int, input().split())
b = [0 for i in range(m)]
for i in range(m):
b[i] = int(input())
for i in range(n):
c = 0
for j in range(m):
c += A[i][j] * b[j]
... | Traceback (most recent call last):
File "/tmp/tmp5jgfou88/tmpbaorp4v6.py", line 1, in <module>
n, m = map(int, input().split())
^^^^^^^
EOFError: EOF when reading a line
| |
s561686920 | p02410 | u354053070 | 1498508050 | Python | Python3 | py | Runtime Error | 0 | 0 | 307 | import numpy as np
n, m = list(map(int, input().split()))
a = [[0] for i in range(n)]
v = [[0] for j in range(m)]
for i in range(n):
a[i][:] = list(map(int, input().split()))
for j in range(m):
v[j][0] = int(input())
A = np.matrix(a)
V = np.matrix(v)
B = A * V
for i in range(n):
print(B[i][0]) | Traceback (most recent call last):
File "/tmp/tmpbzevxavk/tmpcpvdo1g0.py", line 3, in <module>
n, m = list(map(int, input().split()))
^^^^^^^
EOFError: EOF when reading a line
| |
s120468625 | p02410 | u802537549 | 1499509595 | Python | Python3 | py | Runtime Error | 0 | 0 | 352 | import numpy as np
n, m = map(int, input().split())
A = np.empty((0, m), int)
b = np.empty((0, 1), int)
for i in range(n):
A = np.append(A, np.array([list(map(int, input().split()))]), axis=0)
for i in range(m):
b = np.append(b, np.array([list(map(int, input().split()))]), axis=0)
c = np.dot(A, b)
for i i... | Traceback (most recent call last):
File "/tmp/tmp5vbx2mvf/tmpqsdwpgb8.py", line 3, in <module>
n, m = map(int, input().split())
^^^^^^^
EOFError: EOF when reading a line
| |
s089101718 | p02410 | u248424983 | 1501642185 | Python | Python3 | py | Runtime Error | 0 | 0 | 271 | i,j=map(int,input().split())
mn=[]
n=[]
for _ in range(i):
mn.append(list(map(int,input().split())))
for _ in range(j):
n.append(list(map(int,input().split())))
import numpy as np
x=np.array(mn)
y=np.array(n)
ret=x*y
for num in range(i):
print(sum(ret[num])) | Traceback (most recent call last):
File "/tmp/tmpw1876dvt/tmp40cbik8d.py", line 1, in <module>
i,j=map(int,input().split())
^^^^^^^
EOFError: EOF when reading a line
| |
s019631919 | p02410 | u248424983 | 1501642606 | Python | Python3 | py | Runtime Error | 0 | 0 | 254 | import numpy as np
i,j=map(int,input().split())
mn=[]
n=[]
for _ in range(i):
mn.append(list(map(int,input().split())))
for _ in range(j):
n.append(int(input()))
x=np.array(mn)
y=np.array(n)
ret=x*y
for num in range(i):
print(sum(ret[num])) | Traceback (most recent call last):
File "/tmp/tmp2sd7c410/tmpdlhjx8yh.py", line 2, in <module>
i,j=map(int,input().split())
^^^^^^^
EOFError: EOF when reading a line
| |
s360074029 | p02410 | u492457940 | 1502720125 | Python | Python3 | py | Runtime Error | 0 | 0 | 387 | m = input()
n = input()
i = 0
j = 0
list = []
while i < m:
while j < n:
k = input()
list.append(k)
j += 1
i += 1
i = 0
list2 = []
while i < n:
k = input()
list2.append(k)
i += 1
i = 0
j = 0
k = 0
while i < m:
while j < n:
t = list[j + k]
s = list2[j]
... | Traceback (most recent call last):
File "/tmp/tmpe0nys6n6/tmp_wcigbqg.py", line 1, in <module>
m = input()
^^^^^^^
EOFError: EOF when reading a line
| |
s765314272 | p02410 | u853619096 | 1502848951 | Python | Python3 | py | Runtime Error | 0 | 0 | 302 | n,m=map(int,input().split())
a=[]
b=[]
z=[]
x=[]
for i in range(n):
a+=[[int(i) for i in input().split()]]
for i in range(m):
b+=[[int(i) for i in input().split()]]
for i in range(n):
for j in range(m):
z+=[a[i][j]*b[j][0]]
x+=[sum(z)]
z=0
for i in range(m):
print(x[m]) | Traceback (most recent call last):
File "/tmp/tmpts17a6u0/tmp5gln_m7m.py", line 1, in <module>
n,m=map(int,input().split())
^^^^^^^
EOFError: EOF when reading a line
| |
s366265432 | p02410 | u853619096 | 1502848984 | Python | Python3 | py | Runtime Error | 0 | 0 | 302 | n,m=map(int,input().split())
a=[]
b=[]
z=[]
x=[]
for i in range(n):
a+=[[int(i) for i in input().split()]]
for i in range(m):
b+=[[int(i) for i in input().split()]]
for i in range(n):
for j in range(m):
z+=[a[i][j]*b[j][0]]
x+=[sum(z)]
z=0
for i in range(m):
print(x[i]) | Traceback (most recent call last):
File "/tmp/tmplrle0bev/tmp75lsmizs.py", line 1, in <module>
n,m=map(int,input().split())
^^^^^^^
EOFError: EOF when reading a line
| |
s273633960 | p02410 | u853619096 | 1502849052 | Python | Python3 | py | Runtime Error | 0 | 0 | 303 | n,m=map(int,input().split())
a=[]
b=[]
z=[]
x=[]
for i in range(n):
a+=[[int(i) for i in input().split()]]
for i in range(m):
b+=[[int(i) for i in input().split()]]
for i in range(n):
for j in range(m):
z+=[a[i][j]*b[j][0]]
x+=[sum(z)]
z=[]
for i in range(m):
print(x[i]) | Traceback (most recent call last):
File "/tmp/tmpk8dd3eqg/tmp7q8pln0u.py", line 1, in <module>
n,m=map(int,input().split())
^^^^^^^
EOFError: EOF when reading a line
| |
s798395608 | p02410 | u933096856 | 1505774076 | Python | Python3 | py | Runtime Error | 0 | 0 | 266 | import numpy as np
n,m=map(int,input().split())
a,b=[],[]
for i in range(n):
a.append(list(map(int,input().split())))
for i in range(m):
b.append(list(map(int,input().split())))
a=np.array(a)
b=np.array(b)
x=np.dot(a, b, out = None)
for i in x:
print(*i) | Traceback (most recent call last):
File "/tmp/tmp2559_2u6/tmpktuc9h91.py", line 2, in <module>
n,m=map(int,input().split())
^^^^^^^
EOFError: EOF when reading a line
| |
s437328925 | p02410 | u664228906 | 1506487273 | Python | Python3 | py | Runtime Error | 0 | 0 | 301 | N, M=map(int, input().split())
mat = [[0 for m in range(M)]for n in range(N)]
vec = [0 for m in range(M)]
for n in range(N):
mat[n] = list(map(int , input().split()))
for m in range(m):
vec[m] = int(input())
c = 0
for n in range(N):
for m in range(M):
c += mat[n][m] * vec[m]
print(c)
c = 0 | Traceback (most recent call last):
File "/tmp/tmpgrvid7l4/tmpthovcl0c.py", line 1, in <module>
N, M=map(int, input().split())
^^^^^^^
EOFError: EOF when reading a line
| |
s506417075 | p02410 | u058896377 | 1506600365 | Python | Python3 | py | Runtime Error | 20 | 7796 | 258 | n, m = map(int, input().split())
a = [[int(n) for n in input().split()] for i in range(n)]
b = []
for i in range(m):
b.append(int(input()))
c = [0 for i in range(m)]
for i in range(n):
for j in range(m):
c[i] += a[i][j] * b[j]
print(c[i]) | Traceback (most recent call last):
File "/tmp/tmp54rfdvgi/tmp2ix4ttu6.py", line 1, in <module>
n, m = map(int, input().split())
^^^^^^^
EOFError: EOF when reading a line
| |
s158841065 | p02410 | u197670577 | 1508080292 | Python | Python | py | Runtime Error | 0 | 0 | 271 | n, m = map(int,raw_input().split())
matrix = []
for i in range(n):
matrix.append(map(int,raw_input().split()))
vector = []
for i in range(m):
vector.append(int(raw_input()))
for i in range(m):
for j in range(n):
print sum([vector[j] * matrix[i][j]]) | File "/tmp/tmppwnwwsed/tmpry5z7v8w.py", line 12
print sum([vector[j] * matrix[i][j]])
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
SyntaxError: Missing parentheses in call to 'print'. Did you mean print(...)?
| |
s915778993 | p02410 | u518939641 | 1510150917 | Python | Python3 | py | Runtime Error | 0 | 0 | 215 | import numpy as np
n,m=list(map(int,input().split()))
A=[]
B=[]
for i in range(n):A.append(list(map(int,input().split())))
for i in range(m):B.append(int(input()))
k=np.dot(A,B)
print('\n'.join(map(str,k.tolist()))) | Traceback (most recent call last):
File "/tmp/tmp3l2zt9bf/tmpt9j1g0_f.py", line 2, in <module>
n,m=list(map(int,input().split()))
^^^^^^^
EOFError: EOF when reading a line
| |
s097386284 | p02410 | u747709646 | 1510383884 | Python | Python3 | py | Runtime Error | 0 | 0 | 229 | n,m = map(int, input().split())
A = []
for i in range(n):
A.append(list(map(int, input().split())))
b = []
for i in range(m):
b.append(int(input()))
import numpy as np
c = np.array(A).dot(b)
for ci in c:
print(ci) | Traceback (most recent call last):
File "/tmp/tmpp2jv4a99/tmprm997yfo.py", line 1, in <module>
n,m = map(int, input().split())
^^^^^^^
EOFError: EOF when reading a line
| |
s142175956 | p02410 | u747709646 | 1510384070 | Python | Python3 | py | Runtime Error | 0 | 0 | 230 | import numpy as np
n,m = map(int, input().split())
A = []
for i in range(n):
A.append(list(map(int, input().split())))
b = []
for i in range(m):
b.append(int(input()))
c = np.array(A).dot(b)
for ci in c:
print(ci) | Traceback (most recent call last):
File "/tmp/tmpty8s0zpx/tmphbw2s_0t.py", line 3, in <module>
n,m = map(int, input().split())
^^^^^^^
EOFError: EOF when reading a line
| |
s276545985 | p02410 | u845643816 | 1512132733 | Python | Python3 | py | Runtime Error | 0 | 0 | 259 | a, b = map(int,input().split())
A = [[]*b for i in range(a)]
B = [] * b
for i in range(a):
A[i] = map(int,input().split())
for i in range(b):
B[i] = int(input())
for i in range(a):
s=0
for j in range(b):
s+=A[i][j]*B[j]
print(s) | Traceback (most recent call last):
File "/tmp/tmpzhj62x9p/tmpm4vcdb80.py", line 1, in <module>
a, b = map(int,input().split())
^^^^^^^
EOFError: EOF when reading a line
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.