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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
s936109449 | p02413 | u505411588 | 1519896213 | Python | Python3 | py | Runtime Error | 0 | 0 | 509 | from operator import add
from functools import reduce
r,c = map(int,input().split())
x = [list(map(int, input().split())) for i in range(r)]
import numpy as np
#x=[[3,4,5],[1,2,3]]
a=np.array(x)
#print(a)
b=reduce(add, a)
#print(b)
b=list(b)
#x=list(x[1])
x.append(b)
#print(x)
for i in range(len(x)):
y = r... | Traceback (most recent call last):
File "/tmp/tmpkg8x5042/tmpszk4kv19.py", line 4, in <module>
r,c = map(int,input().split())
^^^^^^^
EOFError: EOF when reading a line
| |
s725955356 | p02413 | u613534067 | 1520307906 | Python | Python3 | py | Runtime Error | 0 | 0 | 323 | r, c = map(int, input().split())
table = []
for i in range(r):
table.append(list(map(int, input().split())))
for i in table:
i.append(sum(i))
b = []
for i in range(c):
b.append(sum(list(table[i for i in range(r)])))
b.append(sum(b))
for i in table:
print(" ".join(map(str, i)))
print(" ".join(map(str, b)... | File "/tmp/tmpn_6ue0m0/tmpd890xt1k.py", line 9
b.append(sum(list(table[i for i in range(r)])))
^^^^^^^^^^^^^^^^^^^^^^^^^^
SyntaxError: invalid syntax. Perhaps you forgot a comma?
| |
s747551176 | p02413 | u613534067 | 1520307927 | Python | Python3 | py | Runtime Error | 0 | 0 | 323 | r, c = map(int, input().split())
table = []
for i in range(r):
table.append(list(map(int, input().split())))
for i in table:
i.append(sum(i))
b = []
for i in range(c):
b.append(sum(list(table[k for k in range(r)])))
b.append(sum(b))
for i in table:
print(" ".join(map(str, i)))
print(" ".join(map(str, b)... | File "/tmp/tmpn0g5uy6a/tmp9rcgqctc.py", line 9
b.append(sum(list(table[k for k in range(r)])))
^^^^^^^^^^^^^^^^^^^^^^^^^^
SyntaxError: invalid syntax. Perhaps you forgot a comma?
| |
s110659907 | p02413 | u613534067 | 1520308020 | Python | Python3 | py | Runtime Error | 0 | 0 | 326 | r, c = map(int, input().split())
table = []
for i in range(r):
table.append(list(map(int, input().split())))
for i in table:
i.append(sum(i))
b = []
for i in range(c):
b.append(sum(list(table[i][k for k in range(r)])))
b.append(sum(b))
for i in table:
print(" ".join(map(str, i)))
print(" ".join(map(str,... | File "/tmp/tmp4m53989n/tmp8x1v9hag.py", line 9
b.append(sum(list(table[i][k for k in range(r)])))
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
SyntaxError: invalid syntax. Perhaps you forgot a comma?
| |
s926844052 | p02413 | u613534067 | 1520308151 | Python | Python3 | py | Runtime Error | 0 | 0 | 326 | r, c = map(int, input().split())
table = []
for i in range(r):
table.append(list(map(int, input().split())))
for i in table:
i.append(sum(i))
b = []
for i in range(c):
b.append(sum(list(table[k for k in range(r)][i])))
b.append(sum(b))
for i in table:
print(" ".join(map(str, i)))
print(" ".join(map(str,... | File "/tmp/tmpcelqmx4w/tmp38yie2wv.py", line 9
b.append(sum(list(table[k for k in range(r)][i])))
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
SyntaxError: invalid syntax. Perhaps you forgot a comma?
| |
s966056168 | p02413 | u017435045 | 1523495522 | Python | Python3 | py | Runtime Error | 0 | 0 | 117 | r, c = map(int, input().split())
for i in range(r):
a = list(map(int, input(),split()))
print(a,sum(a))
| Traceback (most recent call last):
File "/tmp/tmpdwhn0bob/tmpbamzumlf.py", line 1, in <module>
r, c = map(int, input().split())
^^^^^^^
EOFError: EOF when reading a line
| |
s356471524 | p02413 | u017435045 | 1523495937 | Python | Python3 | py | Runtime Error | 0 | 0 | 253 | r, c = map(int, input().split())
a = []
for i in range(r):
a.append(list(map(int, input(),split())))
for line in arr:
line.append(sum(line))
arr.append([sum([line[i] for line in arr]) for i in range(c+1)])
for line in arr:
print(*line)
| Traceback (most recent call last):
File "/tmp/tmpslqm0v4e/tmphrk83_yr.py", line 1, in <module>
r, c = map(int, input().split())
^^^^^^^
EOFError: EOF when reading a line
| |
s784626393 | p02413 | u017435045 | 1523495974 | Python | Python3 | py | Runtime Error | 0 | 0 | 252 | r, c = map(int, input().split())
a = []
for i in range(r):
a.append(list(map(int, input(),split())))
for line in arr:
line.append(sum(line))
arr.append([sum([line[i] for line in arr]) for i in range(c+1)])
for line in arr:
print(line)
| Traceback (most recent call last):
File "/tmp/tmp90x5iz0p/tmpp2ev6m4q.py", line 1, in <module>
r, c = map(int, input().split())
^^^^^^^
EOFError: EOF when reading a line
| |
s016729795 | p02413 | u682153677 | 1523694017 | Python | Python3 | py | Runtime Error | 0 | 0 | 516 | # -*- coding: utf-8 -*-
r, c = list(map(int, input().split()))
a = []
line_sum = 0
for i in range(r):
a.append(list(map(int, input().split())))
for i in range(r):
for j in range(c + 1):
if j == c:
print('{0}'.format(sum(a[i])))
line_sum += sum(a[i])
else:
p... | Traceback (most recent call last):
File "/tmp/tmpqdkaiv3_/tmpw4gypby6.py", line 3, in <module>
r, c = list(map(int, input().split()))
^^^^^^^
EOFError: EOF when reading a line
| |
s437156851 | p02413 | u836133197 | 1524643240 | Python | Python3 | py | Runtime Error | 0 | 0 | 451 | r, c = map(int, input().split())
matrix = [[0 for i in range(c+1)] for j in range(r+1)]
for i in range(r):
a = list(map(int, input().split()))
for j in range(c):
matrix[i][j] = a[j]
matrix[i][c] = sum(a)
for l in range(c+1):
for m in range(r):
matrix[r][l] += matrix[m][l]
for cv in rang... | File "/tmp/tmpbj5fiy_7/tmp5c9aocov.py", line 16
print(" ", end='')
^
IndentationError: expected an indented block after 'if' statement on line 15
| |
s154380162 | p02413 | u806005289 | 1525408283 | Python | Python3 | py | Runtime Error | 20 | 5612 | 607 | l=input().split()
r=int(l[0])
c=int(l[1])
# for yoko
i=0
b=[]
while i<r:
a=input().split()
q=0
su=0
while q<c:
b.append(int(a[q]))
su+=int(a[q])
q=q+1
b.append(su)
i=i+1
# for tate
#x=0
#d=b[0]+b[c+1]+b[2*(c+1)]+b[3*(c+1)]
#x<c+1
x=0
while x<c+1:
d=0
d=b[x]+b[x+... | Traceback (most recent call last):
File "/tmp/tmp0x5hsctd/tmpyhck_vkp.py", line 1, in <module>
l=input().split()
^^^^^^^
EOFError: EOF when reading a line
| |
s880773118 | p02413 | u912237403 | 1370959017 | Python | Python | py | Runtime Error | 0 | 0 | 425 | import sys
p = 0
x1 = []
for line in open('test.txt','r'):#sys.stdin:
x = [int(i) for i in line.split()]
if p == 0:
r,c = x
p = 1
else:
x1.append(x)
for i in range(r):
x1[i].append(sum(x1[i]))
x=[]
for j in range(c+1):
s = 0
for i in range(r):
s += x1[i][j]
... | File "/tmp/tmpxvbuy3th/tmpw6_4539i.py", line 25
print x1[i][j],
^^^^^^^^^^^^^^^
SyntaxError: Missing parentheses in call to 'print'. Did you mean print(...)?
| |
s750915159 | p02413 | u904989881 | 1391831860 | Python | Python | py | Runtime Error | 0 | 0 | 189 | r, c = map(int, raw_input().split())
a = [[0 for i in range(r)] for j in range(c)]
for i in range(c):
row = map(int, raw_input().split())
for j in range(r):
a[i][j] = row[j] | Traceback (most recent call last):
File "/tmp/tmpoili18au/tmpaklt_tlv.py", line 1, in <module>
r, c = map(int, raw_input().split())
^^^^^^^^^
NameError: name 'raw_input' is not defined
| |
s476587595 | p02413 | u633068244 | 1393327923 | Python | Python | py | Runtime Error | 0 | 0 | 384 | r, c = map(int, raw_input().split())
sum_c = [0 for x in range(r)]
sum_r = [0 for x in range(c)]
sum = 0
for i in range(r):
column = map(int, raw_input().split())
for j in range(c):
sum_c[i] += column[j]
sum_r[j] += column[j]
sum = column[j]
print(" ".join(map(str, column) + " " + s... | File "/tmp/tmpwqnvryly/tmp3lcllr2h.py", line 14
print (" ".joint(map(str, sum_r) + " " + str(sum))
^
SyntaxError: '(' was never closed
| |
s083343322 | p02413 | u633068244 | 1393328004 | Python | Python | py | Runtime Error | 0 | 0 | 387 | r, c = map(int, raw_input().split())
sum_c = [0 for x in range(r)]
sum_r = [0 for x in range(c)]
sum = 0
for i in range(r):
column = map(int, raw_input().split())
for j in range(c):
sum_c[i] += column[j]
sum_r[j] += column[j]
sum += column[j]
print(" ".join(map(str, column)) + " " +... | File "/tmp/tmp6rpdblyq/tmpun0wlg8t.py", line 12
print(" ".join(map(str, column)) + " " + str[sum_c[i])
^
SyntaxError: closing parenthesis ')' does not match opening parenthesis '['
| |
s738039515 | p02413 | u633068244 | 1393328026 | Python | Python | py | Runtime Error | 0 | 0 | 388 | r, c = map(int, raw_input().split())
sum_c = [0 for x in range(r)]
sum_r = [0 for x in range(c)]
sum = 0
for i in range(r):
column = map(int, raw_input().split())
for j in range(c):
sum_c[i] += column[j]
sum_r[j] += column[j]
sum += column[j]
print(" ".join(map(str, column)) + " " +... | Traceback (most recent call last):
File "/tmp/tmptapsdzbz/tmpzcvlv33h.py", line 1, in <module>
r, c = map(int, raw_input().split())
^^^^^^^^^
NameError: name 'raw_input' is not defined
| |
s796365571 | p02413 | u633068244 | 1393328078 | Python | Python | py | Runtime Error | 0 | 0 | 277 | r, c = map(int, raw_input().split())
sum_c = [0 for x in range(r)]
sum_r = [0 for x in range(c)]
sum = 0
for i in range(r):
column = map(int, raw_input().split())
for j in range(c):
sum_c[i] += column[j]
sum_r[j] += column[j]
sum += column[j]
X | Traceback (most recent call last):
File "/tmp/tmpbgbz4dem/tmp1s7typau.py", line 1, in <module>
r, c = map(int, raw_input().split())
^^^^^^^^^
NameError: name 'raw_input' is not defined
| |
s269046894 | p02414 | u138628845 | 1531442628 | Python | Python3 | py | Runtime Error | 0 | 0 | 394 | # -*- coding: utf-8 -*-
import numpy as np
A_ele = []
B_ele = []
ele = [int(x) for x in input().split()]
for i in range(ele[0]):
A_ele.append([int(x) for x in input().split()])
A_ele = np.array(A_ele)
for i in range(ele[1]):
B_ele.append([int(x) for x in input().split()])
B_ele = np.array(B_ele)
C_ele = A_ele.d... | Traceback (most recent call last):
File "/tmp/tmpxaag_w51/tmpp9ukmkiw.py", line 5, in <module>
ele = [int(x) for x in input().split()]
^^^^^^^
EOFError: EOF when reading a line
| |
s924811390 | p02414 | u138628845 | 1531442659 | Python | Python3 | py | Runtime Error | 0 | 0 | 394 | # -*- coding: utf-8 -*-
import numpy as np
A_ele = []
B_ele = []
ele = [int(x) for x in input().split()]
for i in range(ele[0]):
A_ele.append([int(x) for x in input().split()])
A_ele = np.array(A_ele)
for i in range(ele[1]):
B_ele.append([int(x) for x in input().split()])
B_ele = np.array(B_ele)
C_ele = A_ele.d... | Traceback (most recent call last):
File "/tmp/tmpn6wiekis/tmpg_grausk.py", line 5, in <module>
ele = [int(x) for x in input().split()]
^^^^^^^
EOFError: EOF when reading a line
| |
s457251465 | p02414 | u138628845 | 1531442695 | Python | Python3 | py | Runtime Error | 0 | 0 | 370 | import numpy as np
A_ele = []
B_ele = []
ele = [int(x) for x in input().split()]
for i in range(ele[0]):
A_ele.append([int(x) for x in input().split()])
A_ele = np.array(A_ele)
for i in range(ele[1]):
B_ele.append([int(x) for x in input().split()])
B_ele = np.array(B_ele)
C_ele = A_ele.dot(B_ele)
for i in rang... | Traceback (most recent call last):
File "/tmp/tmpngw778it/tmplvak9j6i.py", line 4, in <module>
ele = [int(x) for x in input().split()]
^^^^^^^
EOFError: EOF when reading a line
| |
s248280775 | p02414 | u138628845 | 1531442928 | Python | Python3 | py | Runtime Error | 0 | 0 | 394 | # -*- coding: utf-8 -*-
import numpy
A_ele = []
B_ele = []
ele = [int(x) for x in input().split()]
for i in range(ele[0]):
A_ele.append([int(x) for x in input().split()])
A_ele = numpy.array(A_ele)
for i in range(ele[1]):
B_ele.append([int(x) for x in input().split()])
B_ele = numpy.array(B_ele)
C_ele = A_ele.d... | Traceback (most recent call last):
File "/tmp/tmpnhhyu6pg/tmpizlqbu70.py", line 5, in <module>
ele = [int(x) for x in input().split()]
^^^^^^^
EOFError: EOF when reading a line
| |
s420118865 | p02414 | u222716853 | 1532172574 | Python | Python3 | py | Runtime Error | 20 | 5604 | 658 | a = input().split()
x = []
y = []
z = []
a[0] = int(a[0])
a[1] = int(a[1])
a[2] = int(a[2])
for i in range(a[0]):
b = input().split()
for j in range(a[1]):
b[j] = int(b[j])
x.append(b)
z.append([])
for i in range(a[1]):
b = input().split()
for j in range(a[2]):
b[j] = int(b[j])
... | Traceback (most recent call last):
File "/tmp/tmpuo0ht_yq/tmpltke466r.py", line 1, in <module>
a = input().split()
^^^^^^^
EOFError: EOF when reading a line
| |
s455851888 | p02414 | u222716853 | 1532172720 | Python | Python3 | py | Runtime Error | 20 | 5604 | 566 | a = input().split()
x = []
y = []
z = []
a[0] = int(a[0])
a[1] = int(a[1])
a[2] = int(a[2])
for i in range(a[0]):
b = input().split()
x.append(b)
z.append([])
for i in range(a[1]):
b = input().split()
y.append(b)
for i in range(a[0]):
for j in range(a[2]):
z[i].append(0)
for i in ra... | Traceback (most recent call last):
File "/tmp/tmpt_nhvxkr/tmp5j3odw5a.py", line 1, in <module>
a = input().split()
^^^^^^^
EOFError: EOF when reading a line
| |
s696541620 | p02414 | u336705996 | 1535206971 | Python | Python3 | py | Runtime Error | 0 | 0 | 258 | import numpy as np
n,m,l = 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())))
x = np.array(a); y = np.array(b); z = x.dot(y)
for i in z: print(*i)
| Traceback (most recent call last):
File "/tmp/tmpc6dyojcs/tmp6w22gesx.py", line 2, in <module>
n,m,l = map(int,input().split())
^^^^^^^
EOFError: EOF when reading a line
| |
s016828545 | p02414 | u088337682 | 1545224548 | Python | Python3 | py | Runtime Error | 0 | 0 | 311 | import numpy as np
n,m,l = map(int,input().split())
a = np.array([list(map(int,input().split())) for i in range(n)])
b = np.array([list(map(int,input().split())) for i in range(m)])
c = np.dot(a,b)
for i in range(n):
for j in range(n):
if j == n-1:print(c[i][j])
else:print(c[i][j],end=" ")
| Traceback (most recent call last):
File "/tmp/tmpza7x5qkp/tmphy24zxho.py", line 2, in <module>
n,m,l = map(int,input().split())
^^^^^^^
EOFError: EOF when reading a line
| |
s849610825 | p02414 | u198574985 | 1545236957 | Python | Python3 | py | Runtime Error | 20 | 5608 | 745 | n,m,l = input().split()
n = int(n)
m = int(m)
l = int(l)
matrix_A = [[0]*m for i in range(n)]
matrix_B = [[0]*n for j in range(l)]
matrix_C = [[0]*l for k in range(n)]
box_a = []
box_b = []
box_c = 0
for a in range(n):
box_a = input().split()
for b in range(m):
matrix_A[a][b] = int... | Traceback (most recent call last):
File "/tmp/tmpe_xoioji/tmppvgnedwk.py", line 1, in <module>
n,m,l = input().split()
^^^^^^^
EOFError: EOF when reading a line
| |
s755043680 | p02414 | u971674904 | 1545379801 | Python | Python3 | py | Runtime Error | 0 | 0 | 342 | n, m, l = map(int, input().split())
a = [list(map(int, input().split()))for _ in range(n)]
b = [list(map(int, input().split()))for _ in range(m)]
c = [[0 for _ in range(l)]for _ in range(n)]
for i in range(n):
for j in range(l):
for k in range(m):
c[i][j] = a[i][k] * b[k][j]
for h in c:
p... | Traceback (most recent call last):
File "/tmp/tmpvsbatldw/tmpcqficehl.py", line 1, in <module>
n, m, l = map(int, input().split())
^^^^^^^
EOFError: EOF when reading a line
| |
s281976511 | p02414 | u088337682 | 1545404265 | Python | Python3 | py | Runtime Error | 0 | 0 | 343 | import numpy as np
n,m,l = map(int,input().split())
a = [list(map(int,input().split())) for i in range(n)]
b = [list(map(int,input().split())) for i in range(m)]
for i in range(n):
for j in range(n):
sum = 0
for k in range(m):
sum += a[i][k]*b[k][j]
if j==n-1:print(sum)
e... | Traceback (most recent call last):
File "/tmp/tmpmvr_tw3w/tmpivmf4bn3.py", line 2, in <module>
n,m,l = map(int,input().split())
^^^^^^^
EOFError: EOF when reading a line
| |
s428825717 | p02414 | u184749404 | 1545742504 | Python | Python3 | py | Runtime Error | 0 | 0 | 378 | n,m,l = map(int,input().split())
YEAH = list(map)n,m,l = map(int,input().split())
YEAH = [list(map(int,input().split())) for i in range(n)]
FUCK = [list(map(int,input().split())) for i in range(m)]
for i in range(n):
for j in range(l):
GOMI = 0
for k in range(m):
GOMI += FUCK[k][j]*YEAH... | File "/tmp/tmpxsx78qyc/tmps270qavp.py", line 2
YEAH = list(map)n,m,l = map(int,input().split())
^
SyntaxError: invalid syntax
| |
s579821934 | p02414 | u184749404 | 1545828680 | Python | Python3 | py | Runtime Error | 0 | 0 | 365 | n,m,l = map(int,input().split())
YEAH = [list(map(int,input().split())) for i in range(n)]
FUCK = [list(map(int,input().split())) for i in range(m)]
for i in range(n):
for j in range(l):
GOMI = 0
for k in range(m):
GOMI += FUCK[k][j]*YEAH[i][k]
if j!=l:
print(GOMI,en... | File "/tmp/tmpqn54puoo/tmp1i974c4r.py", line 14
print()
IndentationError: expected an indented block after 'else' statement on line 12
| |
s447627881 | p02414 | u874395007 | 1546154246 | Python | Python3 | py | Runtime Error | 20 | 5608 | 442 | n, m, l = map(int, input().split())
A = [[0] * m for i in range(n)]
B = [[0] * l for i in range(m)]
C = [[0] * n for i in range(l)]
for i in range(n):
A[i] = [int(i) for i in input().split()]
for i in range(m):
B[i] = [int(i) for i in input().split()]
for i in range(n):
for j in range(l):
tmp = 0
... | Traceback (most recent call last):
File "/tmp/tmpw92dyrw3/tmpo6tp577u.py", line 1, in <module>
n, m, l = map(int, input().split())
^^^^^^^
EOFError: EOF when reading a line
| |
s368685530 | p02414 | u902639104 | 1551553908 | Python | Python3 | py | Runtime Error | 0 | 0 | 304 | n,m,l=map(int,input().split())
lst=[[]for i in range(n)]
for i in range(n):
lst[i]=list(map(int,input().split()))
lst2=[[]for j in range(m)]
for i in rnage(m):
lst2[j=list(map(int,input().split()))
for i in range(n):
x=0
for j in range(m):
x =x+lst[i][j]*lst2[j][i]
print(x)
| File "/tmp/tmpou2b0kws/tmp4dideckl.py", line 7
lst2[j=list(map(int,input().split()))
^
SyntaxError: '[' was never closed
| |
s737321925 | p02414 | u967268722 | 1556117109 | Python | Python3 | py | Runtime Error | 20 | 5604 | 384 | n,m,l = map(int, input().split())
a=[]
b=[]
ans=[[0 for _ in range(n)] for _ in range(l)]
for _ in range(n):
a.append(list(map(int, input().split())))
for _ in range(m):
b.append(list(map(int, input().split())))
for i in range(n):
for j in range(l):
for k in range(m):
ans[i][j] = ans[i][... | Traceback (most recent call last):
File "/tmp/tmpdvpr_mb9/tmp3ij5mpj6.py", line 1, in <module>
n,m,l = map(int, input().split())
^^^^^^^
EOFError: EOF when reading a line
| |
s784940740 | p02414 | u340503368 | 1556297523 | Python | Python3 | py | Runtime Error | 0 | 0 | 417 | n,m,l = map(int, input().split())
a = []
b = []
for i in range(n):
a.append(list(map(int, input().split())))
for j in range(m):
b.append(list(map(int, input().split())))
for k in range(n):
for o in range(l):
sum = 0
for p in range(m):
sum += (a[n][m] * b[m][l])
print(sum... | Traceback (most recent call last):
File "/tmp/tmpqsxp4_gr/tmpa18kdhwt.py", line 1, in <module>
n,m,l = map(int, input().split())
^^^^^^^
EOFError: EOF when reading a line
| |
s586609025 | p02414 | u340503368 | 1556300848 | Python | Python3 | py | Runtime Error | 0 | 0 | 397 | n,m,l = map(int, input().split())
a = []
b = []
for i in range(n):
a.append(list(map(int, input().split())))
for j in range(m):
b.append(list(map(int, input().split())))
for k in range(n):
for o in range(l):
sum = 0
for p in range(m):
sum += (a[n][m] * b[m][l])
print(sum,... | Traceback (most recent call last):
File "/tmp/tmp2o95gas7/tmplpxa5ack.py", line 1, in <module>
n,m,l = map(int, input().split())
^^^^^^^
EOFError: EOF when reading a line
| |
s761418147 | p02414 | u340503368 | 1556301085 | Python | Python3 | py | Runtime Error | 0 | 0 | 396 | n,m,l = map(int, input().split())
a = []
b = []
for i in range(n):
a.append(list(map(int, input().split())))
for j in range(m):
b.append(list(map(int, input().split())))
for k in range(n):
for o in range(l):
sum = 0
for p in range(m):
sum += a[n][m] * b[m][l]
print(sum, ... | Traceback (most recent call last):
File "/tmp/tmpngi3y9h4/tmpnimkckdl.py", line 1, in <module>
n,m,l = map(int, input().split())
^^^^^^^
EOFError: EOF when reading a line
| |
s763766775 | p02414 | u662822413 | 1556544105 | Python | Python3 | py | Runtime Error | 0 | 0 | 413 | n,m,l=map(int,input().split())
A=[list(map(int,input().split())) for i in range(n)]
B=[list(map(int,input().split())) for i in range(m)]
C=[[0]*l for i in range(n)]
for x in range(n):
for y in range(m):
for z in range(l):
C[x][y] += A[x][z]*B[z][y]
for row in range(n):
print("%d"%(C[row][0... | File "/tmp/tmp7gxcq7ou/tmp2qy42rsx.py", line 12
print("%d"%(C[row][0]).end="")
^^^^^^^^^^^^^^^^^^^^^
SyntaxError: expression cannot contain assignment, perhaps you meant "=="?
| |
s426098421 | p02414 | u662822413 | 1556544138 | Python | Python3 | py | Runtime Error | 0 | 0 | 413 | n,m,l=map(int,input().split())
A=[list(map(int,input().split())) for i in range(n)]
B=[list(map(int,input().split())) for i in range(m)]
C=[[0]*l for i in range(n)]
for x in range(n):
for y in range(m):
for z in range(l):
C[x][y] += A[x][z]*B[z][y]
for row in range(n):
print("%d"%(C[row][0... | Traceback (most recent call last):
File "/tmp/tmp8p1zb_gn/tmp5gfbnw4e.py", line 1, in <module>
n,m,l=map(int,input().split())
^^^^^^^
EOFError: EOF when reading a line
| |
s887162205 | p02414 | u548252256 | 1556600500 | Python | Python3 | py | Runtime Error | 20 | 5600 | 350 | n1,n2,n3 = map(int,input().split(" "))
list1 = [list(map(int,input().split(" "))) for _ in range(n1)]
list2 = [list(map(int,input().split(" "))) for _ in range(n2)]
mat = [[0 for _ in range(n1)] for _ in range(n3)]
for i in range(n1):
for j in range(n2):
for k in range(n3):
mat[i][k] += list1[i][j] * list2[j][... | Traceback (most recent call last):
File "/tmp/tmpit4c5org/tmpm8459x4z.py", line 1, in <module>
n1,n2,n3 = map(int,input().split(" "))
^^^^^^^
EOFError: EOF when reading a line
| |
s266607724 | p02414 | u805716376 | 1556718317 | Python | Python3 | py | Runtime Error | 0 | 0 | 270 | n, m, l = map(int, input().split())
a = [input().split()for _ in range(n)]
b = [input().split()for _ in rnage(m)]
for i in range(n):
for j in range(l):
for k in range(m):
c[i][l] = int(a[i][k])*int(b[k][j])
for i in range(n):
print(*c)
| Traceback (most recent call last):
File "/tmp/tmpi6qzhx7j/tmp4mljdlpi.py", line 1, in <module>
n, m, l = map(int, input().split())
^^^^^^^
EOFError: EOF when reading a line
| |
s338922738 | p02414 | u805716376 | 1556718380 | Python | Python3 | py | Runtime Error | 0 | 0 | 270 | n, m, l = map(int, input().split())
a = [input().split()for _ in range(n)]
b = [input().split()for _ in rnage(m)]
for i in range(n):
for j in range(l):
for k in range(m):
c[i][j] = int(a[i][k])*int(b[k][j])
for i in range(n):
print(*c)
| Traceback (most recent call last):
File "/tmp/tmpitbxl7xn/tmpweiwp9co.py", line 1, in <module>
n, m, l = map(int, input().split())
^^^^^^^
EOFError: EOF when reading a line
| |
s506980696 | p02414 | u805716376 | 1556718440 | Python | Python3 | py | Runtime Error | 0 | 0 | 299 | n, m, l = map(int, input().split())
a = [input().split()for _ in range(n)]
b = [input().split()for _ in rnage(m)]
c = [[0]*l for _ in range(n)]
for i in range(n):
for j in range(l):
for k in range(m):
c[i][j] = int(a[i][k])*int(b[k][j])
for i in range(n):
print(*c)
| Traceback (most recent call last):
File "/tmp/tmpyc9hw08y/tmpuggwr1tf.py", line 1, in <module>
n, m, l = map(int, input().split())
^^^^^^^
EOFError: EOF when reading a line
| |
s142065663 | p02414 | u480501638 | 1558934181 | Python | Python3 | py | Runtime Error | 0 | 0 | 545 | #include <iostream>
using namespace std;
int main() {
int n, m, l, a[110][110] = {0}, b[110][110] = {0};
long long c[110][110] = {0};
cin >> n >> m >> l;
for (int i=0;i<n;i++)
for (int j=0;j<m;j++)
cin >> a[i][j];
for (int i=0;i<m;i++)
for (int j=0;j<l;j++)
cin >> b[i][j];
for (int i... | File "/tmp/tmp4w91g62u/tmptp8c2q7e.py", line 2
using namespace std;
^^^^^^^^^
SyntaxError: invalid syntax
| |
s783147783 | p02414 | u480501638 | 1558934218 | Python | Python3 | py | Runtime Error | 0 | 0 | 545 | #include <iostream>
using namespace std;
int main() {
int n, m, l, a[110][110] = {0}, b[110][110] = {0};
long long c[110][110] = {0};
cin >> n >> m >> l;
for (int i=0;i<n;i++)
for (int j=0;j<m;j++)
cin >> a[i][j];
for (int i=0;i<m;i++)
for (int j=0;j<l;j++)
cin >> b[i][j];
for (int i... | File "/tmp/tmpkg1vnetw/tmpznyt3_2t.py", line 2
using namespace std;
^^^^^^^^^
SyntaxError: invalid syntax
| |
s814145706 | p02414 | u088766660 | 1558934570 | Python | Python3 | py | Runtime Error | 0 | 0 | 320 | while True:
m,f,r = map(int, input().split())
if m==-1 and f==-1 and r==-1:
break
if m==-1 or f==-1:
print('F')
elif m+f>=80:
print('A')
elif 65<=m+f:
print('B')
elif 50<=m+f:
print('C')
elif 30<=m+f:
if r>=50:
print('C')
else:
print('D')
else:
print('F')
| Traceback (most recent call last):
File "/tmp/tmphkrkm957/tmpl9u8m2hd.py", line 2, in <module>
m,f,r = map(int, input().split())
^^^^^^^
EOFError: EOF when reading a line
| |
s271431024 | p02414 | u742371605 | 1559181188 | Python | Python3 | py | Runtime Error | 0 | 0 | 417 | import numpy as np
n, m, l = list(map(int, input().split()))
a = np.array([[int(j) for j in input().split()] for i in range(n)])
b = np.array([[int(j) for j in input().split()] for i in range(m)])
c = np.dot(a, b)
length = [len(x) for x in c]
for i in range(len(c)):
for j in range(length[0]):
print(c[i][j... | Traceback (most recent call last):
File "/tmp/tmpn46drlnz/tmp6x8gq0xy.py", line 2, in <module>
n, m, l = list(map(int, input().split()))
^^^^^^^
EOFError: EOF when reading a line
| |
s276090389 | p02414 | u742371605 | 1559190642 | Python | Python3 | py | Runtime Error | 20 | 5604 | 389 | n, m, l = list(map(int, input().split()))
a = [[int(j) for j in input().split()] for i in range(n)]
b = [[int(j) for j in input().split()] for i in range(m)]
c = [[0 for j in range(n)] for i in range(l)]
for i in range(n):
for j in range(l):
value = 0
for k in range(m):
value = value + ... | Traceback (most recent call last):
File "/tmp/tmp_7cekyu1/tmpsb1pkve4.py", line 1, in <module>
n, m, l = list(map(int, input().split()))
^^^^^^^
EOFError: EOF when reading a line
| |
s869285322 | p02414 | u535719732 | 1559287438 | Python | Python3 | py | Runtime Error | 20 | 5604 | 471 | n,m,l = map(int,input().split())
a = [[0]*m for i in range(n)]
b = [[0]*l for i in range(m)]
c = []
for i in range(n):
a[i] = list(map(int,input().split()))
for i in range(m):
b[i] = list(map(int,input().split()))
for k,v in a:
tmp = []
for kk,vv in zip(*b):
tmp.append(k * kk + v * vv)
c.a... | Traceback (most recent call last):
File "/tmp/tmpbomzdr_2/tmpcskudw_j.py", line 1, in <module>
n,m,l = map(int,input().split())
^^^^^^^
EOFError: EOF when reading a line
| |
s752964430 | p02414 | u535719732 | 1559287675 | Python | Python3 | py | Runtime Error | 20 | 5596 | 471 | n,m,l = map(int,input().split())
a = [[0]*m for i in range(n)]
b = [[0]*l for i in range(m)]
c = []
for i in range(n):
a[i] = list(map(int,input().split()))
for i in range(m):
b[i] = list(map(int,input().split()))
for k,v in a:
tmp = []
for kk,vv in zip(*b):
tmp.append(k * kk + v * vv)
c.a... | Traceback (most recent call last):
File "/tmp/tmprednkwa2/tmpythlukz0.py", line 1, in <module>
n,m,l = map(int,input().split())
^^^^^^^
EOFError: EOF when reading a line
| |
s061058605 | p02414 | u193025715 | 1408641224 | Python | Python3 | py | Runtime Error | 30 | 6720 | 333 | n, m, l = map(int, input().split())
A = [list(map(int, input().split())) for i in range(n)]
B = [list(map(int, input().split())) for i in range(m)]
C = [[0] * n for i in range(l)]
for i in range(l):
for j in range(n):
C[i][j] = str(sum(A[i][k] * B[k][j] for k in range(m)))
for i in range(l):
print(' ... | Traceback (most recent call last):
File "/tmp/tmplyr3c4lb/tmpkzsnv3x6.py", line 1, in <module>
n, m, l = map(int, input().split())
^^^^^^^
EOFError: EOF when reading a line
| |
s204529527 | p02414 | u324174308 | 1410285598 | Python | Python | py | Runtime Error | 0 | 0 | 492 |
(n, m, l) = map(int, raw_input().split())
A = []
for i in xrange(0,n):
line_A = map(int, raw_input().split())
A.append(line_A)
B = []
for j in xrange(0,m):
line_B = map(int, raw_input().split())
B.append(line_B)
C = []
for x in xrange(0,n):
temp_list = []
for y in xrange(0,l):
temp = 0
for z in xrange(0,m... | File "/tmp/tmpo3whvqgr/tmp6vcd6e8t.py", line 31
for h in xrange(0,l):
IndentationError: expected an indented block after 'for' statement on line 31
| |
s104225706 | p02414 | u327972099 | 1410525552 | Python | Python3 | py | Runtime Error | 30 | 6736 | 516 | n, m, l = list(map(lambda x: int(x), input().split(" ")))
A = list()
for i in range(n):
A.extend([list(map(lambda x: int(x), input().split(" ")))])
B = list()
for i in range(m):
B.extend([list(map(lambda x: int(x), input().split(" ")))])
C = list([[0 for n_ in range(n)]for l_ in range(l)])
for i in range(n):
... | Traceback (most recent call last):
File "/tmp/tmpriseyi8y/tmp5n1y6awd.py", line 1, in <module>
n, m, l = list(map(lambda x: int(x), input().split(" ")))
^^^^^^^
EOFError: EOF when reading a line
| |
s197437815 | p02414 | u017764209 | 1417669346 | Python | Python | py | Runtime Error | 20 | 4244 | 415 | n,m,l = map(int,raw_input().split())
nm = []
ml = []
result = []
for a in range(n):
nm.append(map(int,raw_input().split()))
for b in range(m):
ml.append(map(int,raw_input().split()))
result = [ [0 for a in range(n)] for b in range(l) ]
for i in range(n):
for j in range(l):
for k in range(m):
... | File "/tmp/tmpjqzican4/tmp24hvkubm.py", line 18
print " ".join(map(str,seq))
^^^^^^^^^^^^^^^^^^^^^^^^^^^^
SyntaxError: Missing parentheses in call to 'print'. Did you mean print(...)?
| |
s018883363 | p02414 | u813534019 | 1420698377 | Python | Python3 | py | Runtime Error | 0 | 0 | 535 |
n,m,l = [int(x) for x in raw_input().split()]
A = []
for idx in range(0,n):
A.append([int(x) for x in raw_input().split()])
B = []
for idx in range(0,m):
B.append([int(x) for x in raw_input().split()])
for line in range(0, n):
result_list = []
for idx1 in range(0, l):
sum = 0
for idx... | File "/tmp/tmpesijkdev/tmpccd9bonw.py", line 23
print result_str
^^^^^^^^^^^^^^^^
SyntaxError: Missing parentheses in call to 'print'. Did you mean print(...)?
| |
s613302461 | p02414 | u297342993 | 1423100392 | Python | Python3 | py | Runtime Error | 0 | 0 | 405 | import numpy as np
(n, m, l) = [int(i) for i in input().split()]
A = []
for nc in range(n):
A.append([int(i) for i in input().split()])
B = []
for mc in range(m):
B.append([int(i) for i in input().split()])
product = np.dot(A,B)
for nc in range(n):
for lc in range(l):
if lc == l - 1:
... | Traceback (most recent call last):
File "/tmp/tmp4nwvjpgt/tmpgjdbjab0.py", line 3, in <module>
(n, m, l) = [int(i) for i in input().split()]
^^^^^^^
EOFError: EOF when reading a line
| |
s096074462 | p02414 | u297342993 | 1423100439 | Python | Python3 | py | Runtime Error | 0 | 0 | 385 | (n, m, l) = [int(i) for i in input().split()]
A = []
for nc in range(n):
A.append([int(i) for i in input().split()])
B = []
for mc in range(m):
B.append([int(i) for i in input().split()])
product = np.dot(A,B)
for nc in range(n):
for lc in range(l):
if lc == l - 1:
print(product[nc][... | Traceback (most recent call last):
File "/tmp/tmpyo2bykbs/tmpunssxdco.py", line 1, in <module>
(n, m, l) = [int(i) for i in input().split()]
^^^^^^^
EOFError: EOF when reading a line
| |
s359955855 | p02414 | u297342993 | 1423100462 | Python | Python3 | py | Runtime Error | 0 | 0 | 376 | (n, m, l) = [int(i) for i in input().split()]
A = []
for nc in range(n):
A.append([int(i) for i in input().split()])
B = []
for mc in range(m):
B.append([int(i) for i in input().split()])
product = []
for nc in range(n):
for lc in range(l):
if lc == l - 1:
print(product[nc][lc])
... | Traceback (most recent call last):
File "/tmp/tmprdjmanqd/tmpj_1sv77c.py", line 1, in <module>
(n, m, l) = [int(i) for i in input().split()]
^^^^^^^
EOFError: EOF when reading a line
| |
s565368765 | p02414 | u971748390 | 1425392011 | Python | Python3 | py | Runtime Error | 0 | 0 | 328 | n,m,l=map(int,input().split())
a=[list(map(int,input().split())) for i range(n)]
b=[list(map(int,input().split())) for i range(m)]
c=[[0 for k range(n)] for j range(l)]
for i in range(n):
for j in range(l):
for k in range(m):
c[i][j] += a[i][k]*b[k][j]
for i in range(n):
for j in range(l):
print(... | File "/tmp/tmplqyh7ay0/tmpv8ebu7c0.py", line 3
a=[list(map(int,input().split())) for i range(n)]
^^^^^^^^^^
SyntaxError: invalid syntax. Perhaps you forgot a comma?
| |
s599233344 | p02414 | u971748390 | 1425392622 | Python | Python3 | py | Runtime Error | 0 | 0 | 329 | n,m,l=map(int,input().split())
a=[list(map(int,input().split())) for i range(n)]
b=[list(map(int,input().split())) for i range(m)]
c=[[0 for k range(n)] for j range(l)]
for i in range(n):
for j in range(l):
for k in range(m):
c[i][j] += a[i][k]*b[k][j]
for i in range(n):
for j in range(l):
print(... | File "/tmp/tmpf9vfuwp4/tmpgzx911n_.py", line 3
a=[list(map(int,input().split())) for i range(n)]
^^^^^^^^^^
SyntaxError: invalid syntax. Perhaps you forgot a comma?
| |
s051403843 | p02414 | u669360983 | 1432986174 | Python | Python | py | Runtime Error | 0 | 0 | 239 | n,m,l=map(int,raw_input().split())
matA=[map(int,raw_input().split()) for i in range(m)]
matB=[map(int,raw_input().split()) for j in range(l)]
for i in range(n):
for j in range(l):
print sum([A[i][k]*B[k][j] for k in range(m)]),
print | File "/tmp/tmpk89fr3jf/tmpxakx4_xm.py", line 6
print sum([A[i][k]*B[k][j] for k in range(m)]),
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
SyntaxError: Missing parentheses in call to 'print'. Did you mean print(...)?
| |
s768015827 | p02414 | u152353734 | 1439859960 | Python | Python3 | py | Runtime Error | 0 | 0 | 442 | (n, m, l) = [int(i) for i in input().split()]
A = []
for nc in range(n):
A.append([int(i) for i in input().split()])
B = []
for mc in range(m):
B.append([int(i) for i in input().split()])
product = [[0 for d in range(l)] for dd in range()]
for nc in range(n):
for lc in range(l):
for mc ra... | File "/tmp/tmpxgikazdp/tmpi9e_5pju.py", line 13
for mc range(m):
^^^^^
SyntaxError: invalid syntax
| |
s715972566 | p02414 | u152353734 | 1439860026 | Python | Python3 | py | Runtime Error | 0 | 0 | 445 | (n, m, l) = [int(i) for i in input().split()]
A = []
for nc in range(n):
A.append([int(i) for i in input().split()])
B = []
for mc in range(m):
B.append([int(i) for i in input().split()])
product = [[0 for d in range(l)] for dd in range()]
for nc in range(n):
for lc in range(l):
for mc in... | Traceback (most recent call last):
File "/tmp/tmpv8vtzbes/tmpmdz2xsk4.py", line 1, in <module>
(n, m, l) = [int(i) for i in input().split()]
^^^^^^^
EOFError: EOF when reading a line
| |
s948518648 | p02414 | u118723993 | 1440639140 | Python | Python3 | py | Runtime Error | 0 | 0 | 257 | n, m, L = map(int, input().split())
a = [list(map(int, input().split())) for _ in range(n)]
b = [list(map(int, input().split())) for _ in range(m)]
c = [[sum(ak * bk for ak, bk in zip(ai,bj)) for bj in zip(*b)] for ai in a]
for ci in c:
print(*ci) | File "/tmp/tmp8dnaxcjl/tmpwme7qkk9.py", line 1
n, m, L = map(int, input().split())
IndentationError: unexpected indent
| |
s050814500 | p02414 | u978086225 | 1440651525 | Python | Python3 | py | Runtime Error | 0 | 0 | 494 | (n, m, l) = [int(i) for i in input().split()]
A = []
for nc in range(n):
????????A.append([int(i) for i in input().split()])
B = []
for mc in range(m):
????????B.append([int(i) for i in input().split()])
??
product = [[0 for d in range(l)] for dd in range(n)]
??????????????
for nc in range(n):
????????for lc in range... | File "/tmp/tmp_q63m_oe/tmp9qvyzqb3.py", line 4
????????A.append([int(i) for i in input().split()])
^
IndentationError: expected an indented block after 'for' statement on line 3
| |
s643797784 | p02414 | u978086225 | 1440651542 | Python | Python3 | py | Runtime Error | 0 | 0 | 494 | (n, m, l) = [int(i) for i in input().split()]
A = []
for nc in range(n):
????????A.append([int(i) for i in input().split()])
B = []
for mc in range(m):
????????B.append([int(i) for i in input().split()])
??
product = [[0 for d in range(l)] for dd in range(n)]
??????????????
for nc in range(n):
????????for lc in range... | File "/tmp/tmp5n4gn3cm/tmp9rsd68jx.py", line 4
????????A.append([int(i) for i in input().split()])
^
IndentationError: expected an indented block after 'for' statement on line 3
| |
s914718763 | p02414 | u321017034 | 1452585606 | Python | Python3 | py | Runtime Error | 30 | 7700 | 392 | nml = input().split()
n, m, l = map(int, nml)
A = [[int(i) for i in input().split()] for j in range(n)]
B = [[int(i) for i in input().split()] for j in range(m)]
C = [[0 for i in range(l)] for j in range(n)]
for j in range(n):
for i in range(l):
s = 0
for k in range(m):
s += A[i][k]*B... | Traceback (most recent call last):
File "/tmp/tmpc4dhjb4n/tmpopap8jf8.py", line 1, in <module>
nml = input().split()
^^^^^^^
EOFError: EOF when reading a line
| |
s396111870 | p02414 | u321017034 | 1452585744 | Python | Python3 | py | Runtime Error | 30 | 7696 | 405 | nml = input().split()
n, m, l = map(int, nml)
A = [[int(i) for i in input().split()] for j in range(n)]
B = [[int(i) for i in input().split()] for j in range(m)]
C = [[0 for i in range(l)] for j in range(n)]
for j in range(n):
for i in range(l):
s = 0
for k in range(m):
s += A[i][k]*B... | Traceback (most recent call last):
File "/tmp/tmp6b3vf9cn/tmp2ww1lmh_.py", line 1, in <module>
nml = input().split()
^^^^^^^
EOFError: EOF when reading a line
| |
s712681712 | p02414 | u321017034 | 1452761740 | Python | Python3 | py | Runtime Error | 20 | 7724 | 405 | nml = input().split()
n, m, l = map(int, nml)
A = [[int(i) for i in input().split()] for j in range(n)]
B = [[int(i) for i in input().split()] for j in range(m)]
C = [[0 for i in range(l)] for j in range(n)]
for j in range(n):
for i in range(l):
s = 0
for k in range(m):
s += A[i][k]*B... | Traceback (most recent call last):
File "/tmp/tmp4cnd9csg/tmpgy4t_0hq.py", line 1, in <module>
nml = input().split()
^^^^^^^
EOFError: EOF when reading a line
| |
s893532568 | p02414 | u321017034 | 1452991100 | Python | Python3 | py | Runtime Error | 50 | 7764 | 405 | nml = input().split()
n, m, l = map(int, nml)
A = [[int(i) for i in input().split()] for j in range(n)]
B = [[int(i) for i in input().split()] for j in range(m)]
C = [[0 for i in range(l)] for j in range(n)]
for j in range(n):
for i in range(l):
s = 0
for k in range(m):
s += A[i][k]*B... | Traceback (most recent call last):
File "/tmp/tmppx97qx3r/tmp7_8wylui.py", line 1, in <module>
nml = input().split()
^^^^^^^
EOFError: EOF when reading a line
| |
s739536919 | p02414 | u771917453 | 1461070270 | Python | Python | py | Runtime Error | 10 | 6476 | 381 | n,m,l = map(int,raw_input().split())
a = [map(int,raw_input().split()) for _ in range(n)]
b = [map(int,raw_input().split()) for _ in range(m)]
c = [[0 for i in range(n)] for j in range(l)]
for i in range(n):
for j in range(l):
s = 0
for k in range(m):
s += a[i][k] * b[k][j]
c[i]... | File "/tmp/tmpoyuqqvuh/tmp9_c15rbl.py", line 14
print ' '.join(map(str,c[i]))
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
SyntaxError: Missing parentheses in call to 'print'. Did you mean print(...)?
| |
s862457340 | p02414 | u003309334 | 1462704955 | Python | Python | py | Runtime Error | 10 | 6360 | 428 | import sys
n, m, l = 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(map(int, raw_input().split()))
c = [[0 for i in xrange(n)] for j in xrange(l)]
for i in xrange(n):
for j in xrange(l):
for k in xrange(m):
c[i][j] += a[i][k]... | File "/tmp/tmpsmyp7bi1/tmpeubchnsg.py", line 21
print c[i][l-1]
^^^^^^^^^^^^^^^
SyntaxError: Missing parentheses in call to 'print'. Did you mean print(...)?
| |
s712412374 | p02414 | u003309334 | 1462706432 | Python | Python | py | Runtime Error | 0 | 0 | 346 | import numpy as np
import sys
n, m, l = 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(map(int, raw_input().split()))
a = np.matrix(a)
b = np.matrix(b)
c = a * b
for i in xrange(n):
for j in xrange(l-1):
sys.stdout.write(str(c[... | File "/tmp/tmp60rrmxpa/tmp15369g_o.py", line 20
print c[i,l-1]
^^^^^^^^^^^^^^
SyntaxError: Missing parentheses in call to 'print'. Did you mean print(...)?
| |
s426225082 | p02414 | u182913399 | 1463101817 | Python | Python3 | py | Runtime Error | 0 | 0 | 237 | import numpy as np
n, m, l = map(int, input().split())
a = np.matrix(';'.join([input() for i in range(n)]))
b = np.matrix(';'.join([input() for i in range(m)]))
c = a * b
for i in range(n):
print(' '.join(map(str, c.tolist()[i]))) | Traceback (most recent call last):
File "/tmp/tmpy1v3gqdr/tmp6x63gr5n.py", line 3, in <module>
n, m, l = map(int, input().split())
^^^^^^^
EOFError: EOF when reading a line
| |
s763120920 | p02414 | u670498238 | 1463531589 | Python | Python3 | py | Runtime Error | 0 | 0 | 251 | n, m, L = map(int, input().split))
a = [list(map(int, input().split())) for _in range(n)]
b = [list(map(int, input().split())) for _in range(m)]
c = [[sum(ak * bk for ak, bk in zip(ai, bj)) for bj in zip(*b)] for ai in a]
for ci in c:
print(*ci) | File "/tmp/tmpd620rt7i/tmpgguhykik.py", line 1
n, m, L = map(int, input().split))
^
SyntaxError: unmatched ')'
| |
s359482049 | p02414 | u239721772 | 1463628625 | Python | Python3 | py | Runtime Error | 20 | 7744 | 525 | n, m, l = (int(i) for i in input().split())
A = []
B = []
array = [[0 for i in range(n)] for j in range(l)]
#??\?????????????????????????´?
for i in range(n):
swap_list = input().split()
A.append(swap_list)
for i in range(m):
swap_list = input().split()
B.append(swap_list)
#?????????????????????
for ... | Traceback (most recent call last):
File "/tmp/tmp5tgebl2w/tmpbywoxsr5.py", line 1, in <module>
n, m, l = (int(i) for i in input().split())
^^^^^^^
EOFError: EOF when reading a line
| |
s212492035 | p02414 | u239721772 | 1463628729 | Python | Python3 | py | Runtime Error | 30 | 7752 | 521 | n, m, l = (int(i) for i in input().split())
A = []
B = []
array = [[0 for i in range(n)] for j in range(l)]
#??\?????????????????????????´?
for i in range(n):
swap_list = input().split()
A.append(swap_list)
for i in range(m):
swap_list = input().split()
B.append(swap_list)
#?????????????????????
for i i... | Traceback (most recent call last):
File "/tmp/tmpdp5yrl7x/tmp__r9yvju.py", line 1, in <module>
n, m, l = (int(i) for i in input().split())
^^^^^^^
EOFError: EOF when reading a line
| |
s426993404 | p02414 | u239721772 | 1463628985 | Python | Python3 | py | Runtime Error | 30 | 7656 | 509 | n, m, l = (int(i) for i in input().split())
A = []
B = []
C = [[0 for i in range(n)] for j in range(l)]
#??\?????????????????????????´?
for i in range(n):
swap_list = input().split()
A.append(swap_list)
for i in range(m):
swap_list = input().split()
B.append(swap_list)
#?????????????????????
for i in ra... | Traceback (most recent call last):
File "/tmp/tmpvnxsz08e/tmp7gp1ndzu.py", line 1, in <module>
n, m, l = (int(i) for i in input().split())
^^^^^^^
EOFError: EOF when reading a line
| |
s314456480 | p02414 | u239721772 | 1463629674 | Python | Python3 | py | Runtime Error | 20 | 7752 | 510 | n, m, l = (int(i) for i in input().split())
A = []
B = []
C = [[0 for i in range(n)] for j in range(l)]
#??\?????????????????????????´?
for i in range(n):
swap_list = input().split()
A.append(swap_list)
for i in range(m):
swap_list = input().split()
B.append(swap_list)
#?????????????????????
for i in r... | Traceback (most recent call last):
File "/tmp/tmpkb4npc80/tmpe8ui0myo.py", line 1, in <module>
n, m, l = (int(i) for i in input().split())
^^^^^^^
EOFError: EOF when reading a line
| |
s506060480 | p02414 | u239721772 | 1463629766 | Python | Python3 | py | Runtime Error | 20 | 7708 | 511 | n, m, l = (int(i) for i in input().split())
A = []
B = []
C = [[0 for i in range(n)] for j in range(l)]
#??\?????????????????????????´?
for i in range(n):
swap_list = input().split()
A.append(swap_list)
for i in range(m):
swap_list = input().split()
B.append(swap_list)
#?????????????????????
for i in r... | Traceback (most recent call last):
File "/tmp/tmpeeecj0b7/tmpqw4d3n_j.py", line 1, in <module>
n, m, l = (int(i) for i in input().split())
^^^^^^^
EOFError: EOF when reading a line
| |
s893237435 | p02414 | u239721772 | 1463630022 | Python | Python3 | py | Runtime Error | 20 | 7756 | 513 | n, m, l = (int(i) for i in input().split())
A = []
B = []
C = [[0 for i in range(n)] for j in range(l)]
#??\?????????????????????????´?
for i in range(n):
swap_list = input().split()
A.append(swap_list)
for i in range(m):
swap_list = input().split()
B.append(swap_list)
#?????????????????????
for i in r... | Traceback (most recent call last):
File "/tmp/tmpxru4rota/tmp1dj0prku.py", line 1, in <module>
n, m, l = (int(i) for i in input().split())
^^^^^^^
EOFError: EOF when reading a line
| |
s986846756 | p02414 | u239721772 | 1463635812 | Python | Python3 | py | Runtime Error | 30 | 7708 | 513 | n, m, l = (int(i) for i in input().split())
A = []
B = []
C = [[0 for i in range(n)] for j in range(l)]
#??\?????????????????????????´?
for i in range(n):
swap_list = input().split()
A.append(swap_list)
for i in range(m):
swap_list = input().split()
B.append(swap_list)
#?????????????????????
for i in r... | Traceback (most recent call last):
File "/tmp/tmpz45g9eqq/tmpy4baxvft.py", line 1, in <module>
n, m, l = (int(i) for i in input().split())
^^^^^^^
EOFError: EOF when reading a line
| |
s031324810 | p02414 | u239721772 | 1463635871 | Python | Python3 | py | Runtime Error | 20 | 7712 | 513 | n, m, l = (int(i) for i in input().split())
A = []
B = []
C = [[0 for i in range(n)] for j in range(l)]
#??\?????????????????????????´?
for i in range(n):
swap_list = input().split()
A.append(swap_list)
for i in range(m):
swap_list = input().split()
B.append(swap_list)
#?????????????????????
for i in r... | Traceback (most recent call last):
File "/tmp/tmpd3jwhf0t/tmpb16xdepf.py", line 1, in <module>
n, m, l = (int(i) for i in input().split())
^^^^^^^
EOFError: EOF when reading a line
| |
s743587447 | p02414 | u239721772 | 1463636353 | Python | Python3 | py | Runtime Error | 20 | 7716 | 538 | n, m, l = (int(i) for i in input().split())
A = []
B = []
#C = [[0] * n] * l
C = [[0 for i in range(n)] for j in range(l)]
#??\?????????????????????????´?
for i in range(n):
swap_list = input().split()
A.append(swap_list)
for i in range(m):
swap_list = input().split()
B.append(swap_list)
#?????????????... | Traceback (most recent call last):
File "/tmp/tmp9ty13oe5/tmpvjs85e4p.py", line 1, in <module>
n, m, l = (int(i) for i in input().split())
^^^^^^^
EOFError: EOF when reading a line
| |
s566938985 | p02414 | u239721772 | 1463636389 | Python | Python3 | py | Runtime Error | 20 | 7732 | 542 | n, m, l = (int(i) for i in input().split())
A = []
B = []
#C = [[0] * n] * l
C = [[0 for i in range(n)] for j in range(l)]
#??\?????????????????????????´?
for i in range(0,n):
swap_list = input().split()
A.append(swap_list)
for i in range(0,m):
swap_list = input().split()
B.append(swap_list)
#?????????... | Traceback (most recent call last):
File "/tmp/tmp097l5di1/tmp4mp5v4p_.py", line 1, in <module>
n, m, l = (int(i) for i in input().split())
^^^^^^^
EOFError: EOF when reading a line
| |
s907957196 | p02414 | u239721772 | 1463642411 | Python | Python3 | py | Runtime Error | 30 | 7748 | 638 | n, m, l = (int(i) for i in input().split())
A = []
B = []
#C = [[0] * n] * l
C = [[0 for i in range(n)] for j in range(l)]
#??\?????????????????????????´?
for i in range(n):
swap_list = input().split()
A.append(swap_list)
for i in range(m):
swap_list = input().split()
B.append(swap_list)
#?????????????... | Traceback (most recent call last):
File "/tmp/tmpc8ifqz9d/tmpopnvpcrb.py", line 1, in <module>
n, m, l = (int(i) for i in input().split())
^^^^^^^
EOFError: EOF when reading a line
| |
s607797580 | p02414 | u239721772 | 1463642603 | Python | Python3 | py | Runtime Error | 30 | 7748 | 693 | n, m, l = (int(i) for i in input().split())
A = []
B = []
#C = [[0] * n] * l
C = [[0 for i in range(n)] for j in range(l)]
#??\?????????????????????????´?
for i in range(n):
swap_list = input().split()
A.append(swap_list)
for i in range(m):
swap_list = input().split()
B.append(swap_list)
#?????????????... | Traceback (most recent call last):
File "/tmp/tmpx8hty6jw/tmp8prjtav8.py", line 1, in <module>
n, m, l = (int(i) for i in input().split())
^^^^^^^
EOFError: EOF when reading a line
| |
s803068128 | p02414 | u239721772 | 1463643252 | Python | Python3 | py | Runtime Error | 20 | 7692 | 845 | n, m, l = (int(i) for i in input().split())
A = []
B = []
#C = [[0] * n] * l
C = [[0 for i in range(n)] for j in range(l)]
product = [[0 for d in range(l)] for dd in range(n)]
#??\?????????????????????????´?
for i in range(n):
#swap_list = input().split()
#A.append(swap_list)
A.append([int(i) for i in input... | Traceback (most recent call last):
File "/tmp/tmp6v4fhs_a/tmpw6ycxm5q.py", line 1, in <module>
n, m, l = (int(i) for i in input().split())
^^^^^^^
EOFError: EOF when reading a line
| |
s478235682 | p02414 | u239721772 | 1463643524 | Python | Python3 | py | Runtime Error | 20 | 7740 | 783 | n, m, l = (int(i) for i in input().split())
A = []
B = []
#C = [[0] * n] * l
C = [[0 for i in range(n)] for j in range(l)]
#??\?????????????????????????´?
for i in range(n):
#swap_list = input().split()
#A.append(swap_list)
A.append([int(i) for i in input().split()])
for i in range(m):
#swap_list = inp... | Traceback (most recent call last):
File "/tmp/tmp_ker3m9b/tmpmv70p3c7.py", line 1, in <module>
n, m, l = (int(i) for i in input().split())
^^^^^^^
EOFError: EOF when reading a line
| |
s066433109 | p02414 | u427088273 | 1466077081 | Python | Python3 | py | Runtime Error | 20 | 7688 | 644 | # ????????????
n,m,l = list(map(int,input().split()))
matrixA,matrixB = [],[]
for i in range(n):
matrixA.append(list(map(int,input().split())))
for j in range(m):
matrixB.append(list(map(int,input().split())))
matrix = []
for i in range(l):
mtr = []
for j in range(m):
mtr.append(matrixB[j][i])
matrix.append(mtr... | Traceback (most recent call last):
File "/tmp/tmpoky4tsc7/tmpzjuhh_60.py", line 2, in <module>
n,m,l = list(map(int,input().split()))
^^^^^^^
EOFError: EOF when reading a line
| |
s306127418 | p02414 | u427088273 | 1466077119 | Python | Python3 | py | Runtime Error | 20 | 7612 | 644 | # ????????????
n,m,l = list(map(int,input().split()))
matrixA,matrixB = [],[]
for i in range(n):
matrixA.append(list(map(int,input().split())))
for j in range(m):
matrixB.append(list(map(int,input().split())))
matrix = []
for i in range(l):
mtr = []
for j in range(m):
mtr.append(matrixB[j][i])
matrix.append(mtr... | Traceback (most recent call last):
File "/tmp/tmpc3ivipsb/tmp6qj6_of4.py", line 2, in <module>
n,m,l = list(map(int,input().split()))
^^^^^^^
EOFError: EOF when reading a line
| |
s803870757 | p02414 | u525685480 | 1466081865 | Python | Python3 | py | Runtime Error | 50 | 7668 | 463 | # -*- coding: utf-8 -*-
n,m,l = [int(i)for i in input().split(' ')]
A = []
B = []
C = [[0for _ in range(n)]for _ in range(l)]
for i in range(n):
A.append([int(a)for a in input().split(' ')])
for i in range(m):
B.append([int(a)for a in input().split(' ')])
for i in range(n):
for j in range(l):
s = 0... | /tmp/tmpmri4pm3s/tmp4mmyeni8.py:5: SyntaxWarning: invalid decimal literal
C = [[0for _ in range(n)]for _ in range(l)]
Traceback (most recent call last):
File "/tmp/tmpmri4pm3s/tmp4mmyeni8.py", line 2, in <module>
n,m,l = [int(i)for i in input().split(' ')]
^^^^^^^
EOFError: EOF when ... | |
s933091821 | p02414 | u525685480 | 1466082419 | Python | Python3 | py | Runtime Error | 40 | 7732 | 463 | # -*- coding: utf-8 -*-
n,m,l = [int(i)for i in input().split(' ')]
A = []
B = []
C = [[0for _ in range(n)]for _ in range(l)]
for i in range(n):
A.append([int(a)for a in input().split(' ')])
for i in range(m):
B.append([int(a)for a in input().split(' ')])
for i in range(n):
for j in range(l):
s = 0... | /tmp/tmpfb_l5x06/tmph07s9l0t.py:5: SyntaxWarning: invalid decimal literal
C = [[0for _ in range(n)]for _ in range(l)]
Traceback (most recent call last):
File "/tmp/tmpfb_l5x06/tmph07s9l0t.py", line 2, in <module>
n,m,l = [int(i)for i in input().split(' ')]
^^^^^^^
EOFError: EOF when ... | |
s026096410 | p02414 | u340901659 | 1468219206 | Python | Python3 | py | Runtime Error | 40 | 7700 | 380 | n,m,l = map(int,input().split())
a = []
b = []
for _ in range(n):
a.append(list(map(int,input().split())))
for _ in range(m):
b.append(list(map(int,input().split())))
c = [[0 for _ in range(n)] for _ in range(l)]
for i in range(n):
for j in range(m):
for k in range(l):
c[i][k] += a[i][j... | Traceback (most recent call last):
File "/tmp/tmpsgx_s0rx/tmpy3pdj80o.py", line 1, in <module>
n,m,l = map(int,input().split())
^^^^^^^
EOFError: EOF when reading a line
| |
s718988518 | p02414 | u204883389 | 1470202323 | Python | Python3 | py | Runtime Error | 0 | 0 | 475 | n, m, l = [int(i) for i in input().split()]
c = [[0] * l for _ in range(n)]
A = [(int(i) for i in input().split()) for i in range(n)]
B = [(int(i) for i in input().split()) for i in range(m)]
C = [(A + B)]
for ni in range(n):
A.append([int(i) for i in input().split()])
c[n][m] = sum([A[n][m] * B[m][l] for m i... | Traceback (most recent call last):
File "/tmp/tmp2_difcgp/tmpum_dr_15.py", line 1, in <module>
n, m, l = [int(i) for i in input().split()]
^^^^^^^
EOFError: EOF when reading a line
| |
s309367881 | p02414 | u204883389 | 1470202733 | Python | Python3 | py | Runtime Error | 0 | 0 | 373 | n, m, l = [int(i) for i in input().split()]
A = [[int(i) for i in input().split()]]
B = [[int(i) for i in input().split()]]
C = [(A + B)]
for ni in range(n):
A.append([int(i) for i in input().split()])
C[n][m] = sum([A[n][m] * B[m][l] for m in range(m)])
for mi in range(m):
B.append([int(i) for i in in... | Traceback (most recent call last):
File "/tmp/tmp7kpjnqic/tmpnudsus5c.py", line 1, in <module>
n, m, l = [int(i) for i in input().split()]
^^^^^^^
EOFError: EOF when reading a line
| |
s156047510 | p02414 | u204883389 | 1470202915 | Python | Python3 | py | Runtime Error | 0 | 0 | 366 | n, m, l = [int(i) for i in input().split()]
A = [[int(i) for i in input().split()]]
B = [[int(i) for i in input().split()]]
C = []
for ni in range(n):
A.append([int(i) for i in input().split()])
C[n][m] = sum([A[n][m] * B[m][l] for m in range(m)])
for mi in range(m):
B.append([int(i) for i in input().s... | Traceback (most recent call last):
File "/tmp/tmpp6kcobqy/tmpz3pj8f_3.py", line 1, in <module>
n, m, l = [int(i) for i in input().split()]
^^^^^^^
EOFError: EOF when reading a line
| |
s465091666 | p02414 | u204883389 | 1470203038 | Python | Python3 | py | Runtime Error | 0 | 0 | 300 | n, m, l = [int(i) for i in input().split()]
A = []
B = []
C = []
for ni in range(n):
A.append([int(i) for i in input().split()])
C[n][m] = sum([A[n][m] * B[m][l] for m in range(m)])
for mi in range(m):
B.append([int(i) for i in input().split()])
print(" ".join([str(v) for v in C])) | Traceback (most recent call last):
File "/tmp/tmpzitqetvm/tmp29811cyh.py", line 1, in <module>
n, m, l = [int(i) for i in input().split()]
^^^^^^^
EOFError: EOF when reading a line
| |
s069458335 | p02414 | u204883389 | 1470203158 | Python | Python3 | py | Runtime Error | 0 | 0 | 299 | n, m, l = [int(i) for i in input().split()]
A = []
B = []
C = []
for ni in range(n):
A.append([int(i) for i in input().split()])
C[n][m] = sum([A[n][l] * B[m][l] for m in range()])
for mi in range(m):
B.append([int(i) for i in input().split()])
print(" ".join([str(v) for v in C])) | Traceback (most recent call last):
File "/tmp/tmpccof8fpu/tmpmkrypjrn.py", line 1, in <module>
n, m, l = [int(i) for i in input().split()]
^^^^^^^
EOFError: EOF when reading a line
| |
s728790019 | p02414 | u204883389 | 1470203249 | Python | Python3 | py | Runtime Error | 0 | 0 | 300 | n, m, l = [int(i) for i in input().split()]
A = []
B = []
C = []
for ni in range(n):
A.append([int(i) for i in input().split()])
C[n][m] = sum([A[n][l] * B[m][l] for m in range(l)])
for mi in range(m):
B.append([int(i) for i in input().split()])
print(" ".join([str(v) for v in C])) | Traceback (most recent call last):
File "/tmp/tmpnwh0amgq/tmp3wdszhcc.py", line 1, in <module>
n, m, l = [int(i) for i in input().split()]
^^^^^^^
EOFError: EOF when reading a line
| |
s504077338 | p02414 | u204883389 | 1470203489 | Python | Python3 | py | Runtime Error | 0 | 0 | 355 | n, m, l = [int(i) for i in input().split()]
A = [input(range(n))]
B = [input(range(m))]
C = [[0] * 1 for n in range(n)]
for ni in range(n):
A.append([int(i) for i in input().split()])
C[n][m] = sum([A[n][l] * B[m][l] for m in range(l)])
for mi in range(m):
B.append([int(i) for i in input().split()])
p... | Traceback (most recent call last):
File "/tmp/tmpxfnljgzk/tmpf02_ibac.py", line 1, in <module>
n, m, l = [int(i) for i in 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.