s_id stringlengths 10 10 | p_id stringlengths 6 6 | u_id stringlengths 10 10 | date stringlengths 10 10 | language stringclasses 1
value | original_language stringclasses 11
values | filename_ext stringclasses 1
value | status stringclasses 1
value | cpu_time stringlengths 1 5 | memory stringlengths 1 7 | code_size stringlengths 1 6 | code stringlengths 1 539k |
|---|---|---|---|---|---|---|---|---|---|---|---|
s842905005 | p02410 | u643542669 | 1546116299 | Python | Python3 | py | Runtime Error | 0 | 0 | 260 | n, m = map(int, input().split())
a = [[] * n]
b = [None] * 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 = None
for j in range(m):
c += a[j] * b[j]
print(c)
|
s990985012 | p02410 | u643542669 | 1546116685 | Python | Python3 | py | Runtime Error | 0 | 0 | 282 | n, m = map(int, input().split())
a = [[None] * m for _ in range(n)]
b = [None] * m
for i in range(n):
a[i] = list(map(int, input().split()))
for i in range(m):
b[i] = int(input())
for _ in range(n):
c = None
for i in range(m):
c += a[i] * b[i]
print(c)
|
s518797335 | p02410 | u643542669 | 1546116711 | Python | Python3 | py | Runtime Error | 0 | 0 | 279 | n, m = map(int, input().split())
a = [[None] * m for _ in range(n)]
b = [None] * m
for i in range(n):
a[i] = list(map(int, input().split()))
for i in range(m):
b[i] = int(input())
for _ in range(n):
c = 0
for i in range(m):
c += a[i] * b[i]
print(c)
|
s019925399 | p02410 | u643542669 | 1546116767 | Python | Python3 | py | Runtime Error | 0 | 0 | 285 | n, m = map(int, input().split())
a = [[None] * m for _ in range(n)]
b = [None] * 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 = None
for j in range(m):
c += a[i][j] * b[j]
print(c)
|
s679509992 | p02410 | u643542669 | 1546116796 | Python | Python3 | py | Runtime Error | 0 | 0 | 279 | n, m = map(int, input().split())
a = [[0] * m for _ in range(n)]
b = [0] * 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 = None
for j in range(m):
c += a[i][j] * b[j]
print(c)
|
s486424590 | p02410 | u643542669 | 1546122375 | Python | Python3 | py | Runtime Error | 0 | 0 | 263 | n, m = map(int, input().split())
a = [[None] * n]
b = [None] * 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)
|
s835362655 | p02410 | u643542669 | 1546122644 | Python | Python3 | py | Runtime Error | 0 | 0 | 241 | n, m = map(int, input().split())
a = []
b = []
for i in range(n):
a += list(map(int, input().split()))
for i in range(m):
b += int(input())
for i in range(n):
c = 0
for j in range(m):
c += a[i][j] * b[j]
print(c)
|
s162375212 | p02410 | u643542669 | 1546122752 | Python | Python3 | py | Runtime Error | 0 | 0 | 246 | n, m = map(int, input().split())
a = []
b = []
for i in range(n):
a += list(map(int, input().split()))
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)
|
s783362048 | p02410 | u643542669 | 1546124030 | Python | Python3 | py | Runtime Error | 0 | 0 | 202 | n, m = map(int, input().split())
a = [list(map(int, input().split())) for _ in range(n)]
b = [int(input()) for _ in range(m)]
for i in a:
c = 0
for j, k in i, b:
c += j * k
print(c)
|
s390209891 | p02410 | u498462680 | 1546394702 | Python | Python3 | py | Runtime Error | 20 | 5604 | 582 | #データ入力
rowNum, columnNum = map(int, input().split())
inMat = [[0] * columnNum for i in range(columnNum)]
inColumnVec = [[0] for i in range(columnNum)]
for row in range(rowNum):
inMat[row] = [int(i) for i in input().split()]
for column in range(columnNum):
inColumnVec[column] = int(input())
timesAns = [[0] for ... |
s334604037 | p02410 | u498462680 | 1546397060 | Python | Python3 | py | Runtime Error | 20 | 5604 | 582 | #データ入力
rowNum, columnNum = map(int, input().split())
inMat = [[0] * columnNum for i in range(columnNum)]
inColumnVec = [[0] for i in range(columnNum)]
for row in range(rowNum):
inMat[row] = [int(i) for i in input().split()]
for column in range(columnNum):
inColumnVec[column] = int(input())
timesAns = [[0] for ... |
s828718291 | p02410 | u902639104 | 1551466515 | Python | Python3 | py | Runtime Error | 0 | 0 | 309 | n,m=map(int,input().split())
lst=[[]*m for i in range(n)]
for i in range(n):
lst[i]=list(map(int,input().split()))
lst2=[[]*1 for i in range(m)]
for i in range(m):
lst2[i]=list(map(int,input().split()))
for i in range(n):
x=0
for j in range(m):
x=x+lst[j][i]*lst2[l]
print(int(x))
|
s589208940 | p02410 | u902639104 | 1551466577 | Python | Python3 | py | Runtime Error | 0 | 0 | 308 | n,m=map(int,input().split())
lst=[[]*m for i in range(n)]
for i in range(n):
lst[i]=list(map(int,input().split()))
lst2=[[]*1 for i in range(m)]
for i in range(m):
lst2[i]=list(map(int,input().split()))
for i in range(n):
x=0
for j in range(m):
x+=lst[j][i]*lst2[j]
print(int(x))
|
s576217483 | p02410 | u902639104 | 1551466639 | Python | Python3 | py | Runtime Error | 0 | 0 | 312 | n,m=map(int,input().split())
lst=[[]*m for i in range(n)]
for i in range(n):
lst[i]=list(map(int,input().split()))
lst2=[[]*1 for i in range(m)]
for i in range(m):
lst2[i]=list(map(int,input().split()))
for i in range(n):
x=0
for j in range(m):
x=x+lst[j][i]*lst2[l]
print("%d"%(x))
|
s328478172 | p02410 | u902639104 | 1551466691 | Python | Python3 | py | Runtime Error | 0 | 0 | 312 | n,m=map(int,input().split())
lst=[[]*m for i in range(n)]
for i in range(n):
lst[i]=list(map(int,input().split()))
lst2=[[]*1 for i in range(m)]
for i in range(m):
lst2[i]=list(map(int,input().split()))
for i in range(n):
x=0
for j in range(m):
x=x+lst[i][j]*lst2[j]
print("%d"%(x))
|
s780478401 | p02410 | u902639104 | 1551466714 | Python | Python3 | py | Runtime Error | 0 | 0 | 312 | n,m=map(int,input().split())
lst=[[]*m for i in range(n)]
for i in range(n):
lst[i]=list(map(int,input().split()))
lst2=[[]*1 for i in range(m)]
for i in range(m):
lst2[i]=list(map(int,input().split()))
for i in range(n):
x=0
for j in range(m):
x=x+lst[i][j]*lst2[j]
print("%d"%(x))
|
s460125657 | p02410 | u902639104 | 1551466789 | Python | Python3 | py | Runtime Error | 0 | 0 | 308 | n,m=map(int,input().split())
lst=[[]for i in range(n)]
for i in range(n):
lst[i]=list(map(int,input().split()))
lst2=[[]*1 for i in range(m)]
for i in range(m):
lst2[i]=list(map(int,input().split()))
for i in range(n):
x=0
for j in range(m):
x=x+lst[i][j]*lst2[j]
print("%d"%(x))
|
s777015885 | p02410 | u482227082 | 1556436546 | Python | Python3 | py | Runtime Error | 0 | 0 | 275 | n, m = map(int, input().split())
a = [0] * n
b = [0] * m
for i in range(n):
a[i] = list(map(int, input().split()))
for i in range(n):
b[i] = int(input())
for i in range(m):
ret = 0
for j in range(n):
ret += a[i][j] * b[j]
print(ret)
|
s846543558 | p02410 | u805716376 | 1556712975 | Python | Python3 | py | Runtime Error | 0 | 0 | 278 | import numpy as np
n, m = map(int, input().split())
a = []
b = []
for i in range(n):
a += [list(map(int, input().split()))]
for i in range(m):
b += [int(input())]
a = np.array(a)
b = np.array(b)
b.reshape(4, 1)
c = np.dot(a, b)
for i in range(len(c))
print(c[i])
|
s530909106 | p02410 | u805716376 | 1556713034 | Python | Python3 | py | Runtime Error | 0 | 0 | 278 | import numpy as np
n, m = map(int, input().split())
a = []
b = []
for i in range(n):
a += [list(map(int, input().split()))]
for i in range(m):
b += [int(input())]
a = np.array(a)
b = np.array(b)
b.reshape(m, 1)
c = np.dot(a, b)
for i in range(len(c))
print(c[i])
|
s555819681 | p02410 | u805716376 | 1556713164 | Python | Python3 | py | Runtime Error | 0 | 0 | 279 | import numpy as np
n, m = map(int, input().split())
a = []
b = []
for i in range(n):
a += [list(map(int, input().split()))]
for i in range(m):
b += [int(input())]
a = np.array(a)
b = np.array(b)
b.reshape(m, 1)
c = np.dot(a, b)
for i in range(len(c)):
print(c[i])
|
s046762318 | p02410 | u805716376 | 1556713247 | Python | Python3 | py | Runtime Error | 0 | 0 | 279 | import numpy as np
n, m = map(int, input().split())
a = []
b = []
for i in range(n):
a += [list(map(int, input().split()))]
for i in range(m):
b += [int(input())]
a = np.array(a)
b = np.array(b)
b.reshape(m, 1)
c = np.dot(a, b)
for i in range(len(c)):
print(c[i])
|
s293799622 | p02410 | u805716376 | 1556713308 | Python | Python3 | py | Runtime Error | 0 | 0 | 279 | import numpy as np
n, m = map(int, input().split())
a = []
b = []
for i in range(n):
a += [list(map(int, input().split()))]
for i in range(m):
b += [int(input())]
a = np.array(a)
b = np.array(b)
b.reshape(m, 1)
c = np.dot(a, b)
for i in range(len(c)):
print(c[i])
|
s034239745 | p02410 | u805716376 | 1556713885 | Python | Python3 | py | Runtime Error | 0 | 0 | 167 | n, m = map(int, input().split())
a = [input().split() for _ in range(n)]
b = [input()for _ in range(m)]
for a in A:
print(sum(int(x)*int(y) for x, y in zip(a,b)))
|
s313177643 | p02410 | u610816226 | 1556868736 | Python | Python3 | py | Runtime Error | 0 | 0 | 225 | n, m = map(int, input().split())
n_l = []
ans = [0, 0, 0]
for _ in range(n):
l = list(map(int, input().split()))
n_l.append(l)
for x in range(m):
p = int(input())
n_l[:,0] * p
for i in n_l:
print(sum(i))
|
s099149919 | p02410 | u610816226 | 1556869743 | Python | Python3 | py | Runtime Error | 0 | 0 | 223 | n, m = map(int, input().split())
n_l = []
ans = [0, 0, 0]
for _ in range(n):
l = list(map(int, input().split()))
n_l.append(l)
for x in range(m):
p = int(input())
n_l[0:][x]
for i in n_l:
print(sum(i))
|
s053189795 | p02410 | u610816226 | 1556870116 | Python | Python3 | py | Runtime Error | 0 | 0 | 225 | n, m = map(int, input().split())
n_l = []
ans = [0, 0, 0]
for _ in range(n):
l = list(map(int, input().split()))
n_l.append(l)
for x in range(m):
p = int(input())
n_l[:][:][x]
for i in n_l:
print(sum(i))
|
s089584368 | p02410 | u610816226 | 1556870592 | Python | Python3 | py | Runtime Error | 0 | 0 | 244 | n, m = map(int, input().split())
n_l = []
ans = [0, 0, 0]
for _ in range(n):
l = list(map(int, input().split()))
n_l.append(l)
for x in range(m):
p = int(input())
for o in n:
n_l[o] *= p
for i in n_l:
print(sum(i))
|
s712559734 | p02410 | u250040203 | 1558941414 | Python | Python3 | py | Runtime Error | 0 | 0 | 434 | n,m=map(int,input().split())
A=[[0 for j in range(m)]for i in range(n)]
B=[[0 for j in range(1)]for i in range(m)]
C=[[0 for j in range(1)]for i in range(n)]
for i in range(n):
A1,A2,A3,A4=map(int,input().split())
A[i][0]=A1
A[i][1]=A2
A[i][2]=A3
A[i][3]=A4
for i in range(m):
B[i][0]=int(input())
S=int(0)
f... |
s090522375 | p02410 | u250040203 | 1558941742 | Python | Python3 | py | Runtime Error | 20 | 5604 | 450 | #ITP1_6_D
n,m=map(int,input().split())
A=[[0 for j in range(m)]for i in range(n)]
B=[[0 for j in range(1)]for i in range(m)]
C=[[0 for j in range(1)]for i in range(n)]
for i in range(n):
A1,A2,A3,A4=map(int,input().split())
A[i][0]=A1
A[i][1]=A2
A[i][2]=A3
A[i][3]=A4
for i in range(m):
B[i][0]=int(input())
... |
s592953236 | p02410 | u954630472 | 1559124262 | Python | Python3 | py | Runtime Error | 0 | 0 | 345 | from sys import stdin
n, m = (int(n) for n in stdin.readline().rstrip().split())
a = []
for cnt in range(n):
a.append([int(n) for n in stdin.readline().rstrip().split()])
b = []
for cnt in range(m):
b.append([int(n) for n in stdin.readline().rstrip().split()])
from numpy import dot
c = dot(a, b)
for cn i... |
s904925223 | p02410 | u535719732 | 1559222518 | Python | Python3 | py | Runtime Error | 0 | 0 | 278 | a = [[0]*4 for i in range(3)]
b = [0]*4
n, m = input().split()
for i in range(n):
a[n] = list(map(int,input().split()))
for j in range(m):
b[j] = int(input())
c = [0]*3
for i in range(n):
for j in range(m):
c[i] += a[i][j] * b[j]
for i in c:
print(i)
|
s351615590 | p02410 | u535719732 | 1559222538 | Python | Python3 | py | Runtime Error | 0 | 0 | 287 | a = [[0]*4 for i in range(3)]
b = [0]*4
n, m = map(int,input().split())
for i in range(n):
a[n] = list(map(int,input().split()))
for j in range(m):
b[j] = int(input())
c = [0]*3
for i in range(n):
for j in range(m):
c[i] += a[i][j] * b[j]
for i in c:
print(i)
|
s170574456 | p02410 | u535719732 | 1559222579 | Python | Python3 | py | Runtime Error | 20 | 5600 | 287 | a = [[0]*4 for i in range(3)]
b = [0]*4
n, m = map(int,input().split())
for i in range(n):
a[i] = list(map(int,input().split()))
for j in range(m):
b[j] = int(input())
c = [0]*n
for i in range(n):
for j in range(m):
c[i] += a[i][j] * b[j]
for i in c:
print(i)
|
s460331415 | p02410 | u535719732 | 1559222596 | Python | Python3 | py | Runtime Error | 20 | 5604 | 292 | a = [[0]*4 for i in range(3)]
b = [0]*4
n, m = map(int,input().split())
for i in range(n):
a[i] = list(map(int,input().split()))
for j in range(m):
b[j] = int(input())
c = [0]*int(n)
for i in range(n):
for j in range(m):
c[i] += a[i][j] * b[j]
for i in c:
print(i)
|
s733972406 | p02410 | u535719732 | 1559222606 | Python | Python3 | py | Runtime Error | 20 | 5604 | 287 | a = [[0]*4 for i in range(3)]
b = [0]*4
n, m = map(int,input().split())
for i in range(n):
a[i] = list(map(int,input().split()))
for j in range(m):
b[j] = int(input())
c = [0]*n
for i in range(n):
for j in range(m):
c[i] += a[i][j] * b[j]
for i in c:
print(i)
|
s293246356 | p02410 | u529337794 | 1559561440 | Python | Python3 | py | Runtime Error | 0 | 0 | 304 | n, m = map(int, input().split())
a = [[] for _ in range(n)]
for i in range(n):
a[i] = list(map(int, input().split()))
b = [0 for _ in range(m)]
for i in range(m):
b[i] = int(input())
for i in range(n):
d = 0
for j in range(m):
d += a[i][j]*b[j]
print(d)
|
s875385985 | p02410 | u451187291 | 1404915319 | Python | Python | py | Runtime Error | 0 | 0 | 244 | import scipy as np
def az18_2():
n,m = map(int,raw_input().split())
a = np.array([map(int, raw_input().split()) for i in range(n)])
b = np.array([input() for i in range(m)])
for i in range(n):
print a.dot(b)[i]
az18_2() |
s185451583 | p02410 | u451187291 | 1404915471 | Python | Python | py | Runtime Error | 0 | 0 | 244 | import numpy as np
def az18_2():
n,m = map(int,raw_input().split())
a = np.array([map(int, raw_input().split()) for i in range(n)])
b = np.array([input() for i in range(m)])
for i in range(n):
print a.dot(b)[i]
az18_2() |
s775261301 | p02410 | u567380442 | 1421127939 | Python | Python3 | py | Runtime Error | 0 | 0 | 235 | import numpy as np
n, m = map(int, input().split())
a = np.zeros([n, m])
for i in range(n):
a[0] = list(map(int, input().split()))
b = np.zeros(m)
for i in range(m):
b[i] = int(input())
c = a.dot(b)
for i in c:
print(i) |
s652643119 | p02410 | u527848444 | 1424653294 | Python | Python3 | py | Runtime Error | 0 | 0 | 346 | (n,m) = [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())
product = []
for nc in range(n):
total = 0
for mc in range(m):
total += A[nc][mc] * b[mc]
product.append(total)
[... |
s326857259 | p02410 | u527848444 | 1424653328 | Python | Python3 | py | Runtime Error | 0 | 0 | 347 | (n,m) = [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())
product = []
for nc in range(n):
total = 0
for mc in range(m):
total += A[nc] [mc] * b[mc]
product.append(total)
... |
s171870623 | p02410 | u442346200 | 1424653380 | Python | Python3 | py | Runtime Error | 0 | 0 | 356 | (n,m) = [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):
total = 0
for mc in range(m):
total += A[nc][mc] * b[mc]
product.append... |
s508614234 | p02410 | u442346200 | 1424653573 | Python | Python3 | py | Runtime Error | 0 | 0 | 336 | (n,m) = [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(input()))
product = []
for nc in range(n):
total = 0
for mc in range(m):
total += A[nc][mc] * b[mc]
product.append(total)
[print(p) f... |
s932089134 | p02410 | u571345655 | 1435199689 | Python | Python | py | Runtime Error | 0 | 0 | 269 | # coding=utf-8
import numpy as np
A = []
n, m = map(int, raw_input().split())
for _ in xrange(n):
A.append(map(int, raw_input().split()))
A = np.array(A)
b = []
for _ in xrange(m):
b.append(input())
b = np.array(b)
Ab = np.dot(A, b)
for x in Ab:
print x |
s437491990 | p02410 | u571345655 | 1435199920 | Python | Python | py | Runtime Error | 0 | 0 | 300 | # coding=utf-8
import numpy as np
A = []
n, m = map(int, raw_input().split())
for _ in xrange(n):
A.append(map(int, raw_input().split()))
A = np.array(A)
# print A
b = []
for _ in xrange(m):
b.append(input())
b = np.array(b)
# print b
Ab = np.dot(A, b)
# print Ab
for x in Ab:
print x |
s091098876 | p02410 | u571345655 | 1435200368 | Python | Python | py | Runtime Error | 0 | 0 | 317 | # coding=utf-8
import numpy as np
A = []
n, m = map(int, raw_input().split())
for _ in xrange(n):
A.append(map(int, raw_input().split()))
# print A
b = []
for _ in xrange(m):
b.append(input())
# print b
Ab = [sum([A[i][j] * b[j] for j in xrange(m)]) for i in xrange(n)]
# print Ab
for x in Ab:
print x |
s779826265 | p02410 | u446066125 | 1439168897 | Python | Python3 | py | Runtime Error | 0 | 0 | 275 | (n, m) = [int(i) for i in input().split()]
A = [[]]
b = []
for i in range(n):
A.append([int(j) for j in input().split()])
for i in range(m):
b.append(int(input())
for i in range(n):
c = 0
for j in range(m):
c += A[n][m] * b[m]
print(c) |
s223198811 | p02410 | u686134343 | 1439168956 | Python | Python3 | py | Runtime Error | 0 | 0 | 269 | (n, m) = [int(i) for i in input().split()]
a = [[]]
b = []
for i in range(n):
A.append([int(j) for j in input().split()]
for i in range(m):
b.append(int(input()))
c = []
for i range(n):
s = 0
for j in range(m):
m += A[i][j] * b[j]
print(m) |
s380959969 | p02410 | u446066125 | 1439168978 | Python | Python3 | py | Runtime Error | 0 | 0 | 275 | (n, m) = [int(i) for i in input().split()]
A = [[]]
b = []
for i in range(n):
A.append([int(j) for j in input().split()])
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) |
s134434314 | p02410 | u442346200 | 1439168982 | Python | Python3 | py | Runtime Error | 0 | 0 | 264 | (n, m) = [int(i) for i in input().split()]
A = []
B = []
for i in range(n):
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):
m += A[i][j] * B[j]
print(s) |
s556506125 | p02410 | u446066125 | 1439169017 | Python | Python3 | py | Runtime Error | 0 | 0 | 270 | (n, m) = [int(i) for i in input().split()]
A = [[]]
b = []
for i in range(n):
A.append([int(j) for j in input().split()])
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) |
s694731889 | p02410 | u686134343 | 1439169021 | Python | Python3 | py | Runtime Error | 0 | 0 | 269 | (n, m) = [int(i) for i in input().split()]
a = [[]]
b = []
for i in range(n):
A.append([int(j) for j in input().split()]
for i in range(m):
b.append(int(input()))
c = []
for i range(n):
s = 0
for j in range(m):
s += A[i][j] * b[j]
print(s) |
s846489419 | p02410 | u255164080 | 1439169123 | Python | Python3 | py | Runtime Error | 0 | 0 | 266 | (n, m) = [int(i) for i in input().split()]
A = [[]]
b = []
for i input range(n):
A.append([int(j) for j in input().split()])
for i in range(m):
b.append(int(input()))
c = []
for i in range(n):
s = 0
for j in range(m)
s += A[n][m] * b[m] |
s644242327 | p02410 | u605525736 | 1439169129 | Python | Python3 | py | Runtime Error | 0 | 0 | 284 | (n,m) = [int(i) for i in input().split()]
A = []
b = []
for i in range(n):
A.append([int(j) for j in input().split()])
for i in range(m):
b.append(int(input()))
print(A)
print(b)
for i in range(n):
s = 0
for j in range(m):
m += A[i][j] * b[j]
print(s) |
s044873705 | p02410 | u686134343 | 1439169132 | Python | Python3 | py | Runtime Error | 0 | 0 | 273 | (n, m) = [int(i) for i in input().split()]
a = [[]]
b = []
for i in range(n):
A.append([int(j) for j in input().split()]
for i in range(m):
b.append(int(input()))
c = []
for i range(n):
s = 0
for j in range(m):
m += A[i][j] * b[j]
print(s) |
s178021155 | p02410 | u306530296 | 1439169152 | Python | Python3 | py | Runtime Error | 0 | 0 | 268 | (n,m) = [int(i) for i in input().split()]
A = []
b = []
for i in range(n):
A.oppend([int(j) for j in input().split()])
for i in range(m):
b.oppend(int(input()))
for i in range(n):
s = 0
for j in range(m):
s += A[i][j] * b[j]
print(s)
|
s732631648 | p02410 | u118723993 | 1439169153 | Python | Python | py | Runtime Error | 0 | 0 | 270 | (m, 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.apped(int(input()))
c = []
for i in range(n):
s = 0
for j in range(m):
m += A[n][m] * b[m]
print(m) |
s125393139 | p02410 | u446066125 | 1439169156 | Python | Python3 | py | Runtime Error | 0 | 0 | 273 | (n, m) = [int(i) for i in input().split()]
A = [[]]
b = []
for i in range(n):
A.append([int(j) for j in input().split()])
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) |
s903378443 | p02410 | u118723993 | 1439169167 | Python | Python3 | py | Runtime Error | 0 | 0 | 270 | (m, 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.apped(int(input()))
c = []
for i in range(n):
s = 0
for j in range(m):
m += A[n][m] * b[m]
print(m) |
s233733330 | p02410 | u255164080 | 1439169294 | Python | Python3 | py | Runtime Error | 0 | 0 | 279 | (n, m) = [int(i) for i in input().split()]
A = [[]]
b = []
for i input range(n):
A.append([int(j) for j in input().split()])
for i in range(m):
b.append(int(input()))
c = []
for i in range(n):
s = 0
for j in range(m)
s += A[n][m] * b[m] |
s227355347 | p02410 | u745846646 | 1439169399 | Python | Python3 | py | Runtime Error | 0 | 0 | 273 | (n, m) = [int(i) for i in input().split()]
A = []
b = []
for i in range(n):
A.append([int(j) for j in input().split()])
for i in range(m):
b.append(int(input()))
c = []
for i in range(n):
m = 0
for j in range(m):
s += A[i][j] = b[j]
print(s) |
s862829841 | p02410 | u925228699 | 1439169447 | Python | Python3 | py | Runtime Error | 0 | 0 | 254 | (n, m) = [int(i) for i in input().split()]
A = []
b = []
for i in range(n):
A. append([int(j) for j in input().split() ])
for i in ronge(m):
b.append(int(input()))
for i in range(n):
m = 0
for j in range(m):
s += A[j][j] * b[j]
print(s) |
s337643397 | p02410 | u925228699 | 1439169498 | Python | Python3 | py | Runtime Error | 0 | 0 | 254 | (n, m) = [int(i) for i in input().split()]
A = []
b = []
for i in range(n):
A. append([int(j) for j in input().split() ])
for i in ronge(m):
b.append(int(input()))
for i in range(n):
m = 0
for j in range(m):
s += A[j][j] * b[j]
print(s) |
s828485235 | p02410 | u473077745 | 1440639991 | Python | Python3 | py | Runtime Error | 0 | 0 | 292 | (n, m) = [int(i) for i in input().split()]
A = []
b = []
for i in range(n):
????????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) |
s775595533 | p02410 | u473077745 | 1440640104 | Python | Python3 | py | Runtime Error | 0 | 0 | 244 | (n, m) = [int(i) for i in input().split()]
A = []
b = []
for i in range(n):
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) |
s286044422 | p02410 | u240363515 | 1443578889 | Python | Python | py | Runtime Error | 0 | 0 | 378 | import numpy as np
N, M = map(int, raw_input().split())
matrix = []
array = []
for n in range(N):
tmp = map(int, raw_input().split())
if len(tmp) > M:
print 'error'
matrix.append(tmp)
matrix = np.array(matrix)
for m in range(M):
tmp = input()
array.append(tmp)
array = np.array(array)
multi... |
s621861668 | p02410 | u334643297 | 1454517479 | Python | Python | py | Runtime Error | 0 | 0 | 320 | import numpy as np
n, m = map(int, raw_input().split())
a = np.array(map(int, raw_input().split()))
for i in xrange(n-1):
a = np.c_[a, (map(int, raw_input().split()))]
b = np.array(map(int, raw_input().split()))
for i in xrange(m-1):
b = np.r_[b, (map(int, raw_input().split()))]
for i in xrange(n):
print b.dot(a)[i] |
s104264237 | p02410 | u334643297 | 1454517597 | Python | Python | py | Runtime Error | 0 | 0 | 326 | import numpy
n, m = map(int, raw_input().split())
a = numpy.array(map(int, raw_input().split()))
for i in xrange(n-1):
a = numpy.c_[a, (map(int, raw_input().split()))]
b = numpy.array(map(int, raw_input().split()))
for i in xrange(m-1):
b = numpy.r_[b, (map(int, raw_input().split()))]
for i in xrange(n):
print b.dot... |
s393658952 | p02410 | u334643297 | 1454517609 | Python | Python | py | Runtime Error | 0 | 0 | 326 | import numpy
n, m = map(int, raw_input().split())
a = numpy.array(map(int, raw_input().split()))
for i in xrange(n-1):
a = numpy.c_[a, (map(int, raw_input().split()))]
b = numpy.array(map(int, raw_input().split()))
for i in xrange(m-1):
b = numpy.r_[b, (map(int, raw_input().split()))]
for i in xrange(n):
print b.dot... |
s306025758 | p02410 | u334643297 | 1454517643 | Python | Python | py | Runtime Error | 0 | 0 | 326 | import numpy
n, m = map(int, raw_input().split())
a = numpy.array(map(int, raw_input().split()))
for i in xrange(n-1):
a = numpy.c_[a, (map(int, raw_input().split()))]
b = numpy.array(map(int, raw_input().split()))
for i in xrange(m-1):
b = numpy.r_[b, (map(int, raw_input().split()))]
for i in xrange(n):
print b.dot... |
s308503713 | p02410 | u334643297 | 1454517813 | Python | Python | py | Runtime Error | 0 | 0 | 320 | import numpy as np
n, m = map(int, raw_input().split())
a = np.array(map(int, raw_input().split()))
for i in xrange(n-1):
a = np.c_[a, (map(int, raw_input().split()))]
b = np.array(map(int, raw_input().split()))
for i in xrange(m-1):
b = np.r_[b, (map(int, raw_input().split()))]
for i in xrange(n):
print b.dot(a)[i] |
s411020692 | p02410 | u334643297 | 1454517868 | Python | Python | py | Runtime Error | 0 | 0 | 168 | import numpy as np
n, m = map(int, raw_input().split())
a = np.array(map(int, raw_input().split()))
for i in xrange(n-1):
a = np.c_[a, (map(int, raw_input().split()))] |
s256379577 | p02410 | u334643297 | 1454517883 | Python | Python | py | Runtime Error | 0 | 0 | 55 | import numpy as np
n, m = map(int, raw_input().split()) |
s380150093 | p02410 | u334643297 | 1454517894 | Python | Python | py | Runtime Error | 0 | 0 | 18 | import numpy as np |
s660172150 | p02410 | u334643297 | 1454518069 | Python | Python | py | Runtime Error | 0 | 0 | 12 | import numpy |
s345425413 | p02410 | u334643297 | 1454518094 | Python | Python | py | Runtime Error | 0 | 0 | 320 | import numpy as np
n, m = map(int, raw_input().split())
a = np.array(map(int, raw_input().split()))
for i in xrange(n-1):
a = np.c_[a, (map(int, raw_input().split()))]
b = np.array(map(int, raw_input().split()))
for i in xrange(m-1):
b = np.r_[b, (map(int, raw_input().split()))]
for i in xrange(n):
print b.dot(a)[i] |
s898990559 | p02410 | u334643297 | 1454518130 | Python | Python | py | Runtime Error | 0 | 0 | 320 | import numpy as np
n, m = map(int, raw_input().split())
a = np.array(map(int, raw_input().split()))
for i in xrange(n-1):
a = np.c_[a, (map(int, raw_input().split()))]
b = np.array(map(int, raw_input().split()))
for i in xrange(m-1):
b = np.r_[b, (map(int, raw_input().split()))]
for i in xrange(n):
print b.dot(a)[i] |
s289029381 | p02410 | u334643297 | 1454518201 | Python | Python | py | Runtime Error | 0 | 0 | 320 | import NumPy as np
n, m = map(int, raw_input().split())
a = np.array(map(int, raw_input().split()))
for i in xrange(n-1):
a = np.c_[a, (map(int, raw_input().split()))]
b = np.array(map(int, raw_input().split()))
for i in xrange(m-1):
b = np.r_[b, (map(int, raw_input().split()))]
for i in xrange(n):
print b.dot(a)[i] |
s565670705 | p02410 | u334643297 | 1454518214 | Python | Python | py | Runtime Error | 0 | 0 | 314 | import NumPy
n, m = map(int, raw_input().split())
a = np.array(map(int, raw_input().split()))
for i in xrange(n-1):
a = np.c_[a, (map(int, raw_input().split()))]
b = np.array(map(int, raw_input().split()))
for i in xrange(m-1):
b = np.r_[b, (map(int, raw_input().split()))]
for i in xrange(n):
print b.dot(a)[i] |
s467785591 | p02410 | u334643297 | 1454518259 | Python | Python | py | Runtime Error | 0 | 0 | 320 | import numpy as np
n, m = map(int, raw_input().split())
a = np.array(map(int, raw_input().split()))
for i in xrange(n-1):
a = np.c_[a, (map(int, raw_input().split()))]
b = np.array(map(int, raw_input().split()))
for i in xrange(m-1):
b = np.r_[b, (map(int, raw_input().split()))]
for i in xrange(n):
print b.dot(a)[i] |
s863224264 | p02410 | u334643297 | 1454518266 | Python | Python | py | Runtime Error | 0 | 0 | 320 | import numpy as np
n, m = map(int, raw_input().split())
a = np.array(map(int, raw_input().split()))
for i in xrange(n-1):
a = np.c_[a, (map(int, raw_input().split()))]
b = np.array(map(int, raw_input().split()))
for i in xrange(m-1):
b = np.r_[b, (map(int, raw_input().split()))]
for i in xrange(n):
print b.dot(a)[i] |
s563020162 | p02410 | u334643297 | 1454518512 | Python | Python | py | Runtime Error | 0 | 0 | 314 |
n, m = map(int, raw_input().split())
a = numpy.array(map(int, raw_input().split()))
for i in xrange(n-1):
a = numpy.c_[a, (map(int, raw_input().split()))]
b = numpy.array(map(int, raw_input().split()))
for i in xrange(m-1):
b = numpy.r_[b, (map(int, raw_input().split()))]
for i in xrange(n):
print b.dot(a)[i] |
s038185973 | p02410 | u334643297 | 1454518628 | Python | Python | py | Runtime Error | 0 | 0 | 320 | import numpy as np
n, m = map(int, raw_input().split())
a = np.array(map(int, raw_input().split()))
for i in xrange(n-1):
a = np.c_[a, (map(int, raw_input().split()))]
b = np.array(map(int, raw_input().split()))
for i in xrange(m-1):
b = np.r_[b, (map(int, raw_input().split()))]
for i in xrange(n):
print b.dot(a)[i] |
s604340364 | p02410 | u334643297 | 1454518641 | Python | Python | py | Runtime Error | 0 | 0 | 302 |
n, m = map(int, raw_input().split())
a = np.array(map(int, raw_input().split()))
for i in xrange(n-1):
a = np.c_[a, (map(int, raw_input().split()))]
b = np.array(map(int, raw_input().split()))
for i in xrange(m-1):
b = np.r_[b, (map(int, raw_input().split()))]
for i in xrange(n):
print b.dot(a)[i] |
s702474210 | p02410 | u334643297 | 1454518793 | Python | Python3 | py | Runtime Error | 0 | 0 | 320 | import numpy as np
n, m = map(int, raw_input().split())
a = np.array(map(int, raw_input().split()))
for i in xrange(n-1):
a = np.c_[a, (map(int, raw_input().split()))]
b = np.array(map(int, raw_input().split()))
for i in xrange(m-1):
b = np.r_[b, (map(int, raw_input().split()))]
for i in xrange(n):
print b.dot(a)[i] |
s180909942 | p02410 | u334643297 | 1454518827 | Python | Python | py | Runtime Error | 0 | 0 | 62 | import numpy as np
a = np.array(map(int, raw_input().split())) |
s240990707 | p02410 | u334643297 | 1454518997 | Python | Python | py | Runtime Error | 0 | 0 | 12 | import numpy |
s564998734 | p02410 | u334643297 | 1454519070 | Python | Python | py | Runtime Error | 0 | 0 | 320 | import numpy as np
n, m = map(int, raw_input().split())
a = np.array(map(int, raw_input().split()))
for i in xrange(n-1):
a = np.c_[a, (map(int, raw_input().split()))]
b = np.array(map(int, raw_input().split()))
for i in xrange(m-1):
b = np.r_[b, (map(int, raw_input().split()))]
for i in xrange(n):
print b.dot(a)[i] |
s856272709 | p02410 | u334643297 | 1454519372 | Python | Python | py | Runtime Error | 0 | 0 | 350 | import numpy as np
n, m = map(int, raw_input().split())
a = [[0]*m for i in xrange(n)]
b = [0]*m
for i in xrange(n):
tmp = map(int, raw_input().split())
for j in xrange(m):
a[i][j] = tmp[j]
for i in xrange(m):
b[i] = input()
for i in xrange(n):
tmp = 0
for j in xrange(m):
tmp +... |
s225207389 | p02410 | u334643297 | 1454519402 | Python | Python | py | Runtime Error | 0 | 0 | 367 | ##import numpy as np???????????????
n, m = map(int, raw_input().split())
a = [[0]*m for i in xrange(n)]
b = [0]*m
for i in xrange(n):
tmp = map(int, raw_input().split())
for j in xrange(m):
a[i][j] = tmp[j]
for i in xrange(m):
b[i] = input()
for i in xrange(n):
tmp = 0
for j in xrange(... |
s373903044 | p02410 | u334643297 | 1454519461 | Python | Python | py | Runtime Error | 0 | 0 | 366 | #import numpy as np???????????????
n, m = map(int, raw_input().split())
a = [[0]*m for i in xrange(n)]
b = [0]*m
for i in xrange(n):
tmp = map(int, raw_input().split())
for j in xrange(m):
a[i][j] = tmp[j]
for i in xrange(m):
b[i] = input()
for i in xrange(n):
tmp = 0
for j in xrange(m... |
s679595380 | p02410 | u334643297 | 1454519515 | Python | Python | py | Runtime Error | 0 | 0 | 350 | import numpy as np
n, m = map(int, raw_input().split())
a = [[0]*m for i in xrange(n)]
b = [0]*m
for i in xrange(n):
tmp = map(int, raw_input().split())
for j in xrange(m):
a[i][j] = tmp[j]
for i in xrange(m):
b[i] = input()
for i in xrange(n):
tmp = 0
for j in xrange(m):
tmp +... |
s696301210 | p02410 | u334643297 | 1454519561 | Python | Python | py | Runtime Error | 0 | 0 | 360 | # numpy as np???????????????
n, m = map(int, raw_input().split())
a = [[0]*m for i in xrange(n)]
b = [0]*m
for i in xrange(n):
tmp = map(int, raw_input().split())
for j in xrange(m):
a[i][j] = tmp[j]
for i in xrange(m):
b[i] = input()
for i in xrange(n):
tmp = 0
for j in xrange(m):
... |
s593152719 | p02410 | u334643297 | 1454519565 | Python | Python | py | Runtime Error | 0 | 0 | 360 | # numpy as np???????????????
n, m = map(int, raw_input().split())
a = [[0]*m for i in xrange(n)]
b = [0]*m
for i in xrange(n):
tmp = map(int, raw_input().split())
for j in xrange(m):
a[i][j] = tmp[j]
for i in xrange(m):
b[i] = input()
for i in xrange(n):
tmp = 0
for j in xrange(m):
... |
s917375325 | p02410 | u920118302 | 1454642112 | Python | Python3 | py | Runtime Error | 0 | 0 | 268 | n, m = map(int, input().split())
A = []
B = []
for i in range(n):
A.append(map(int, input().split()))
for i in range(m):
B.append(int(input()))
C = []
for i in range(n):
C.append(0)
for j in range(m):
C[i] += A[i][j] * B[j]
print(C[i]) |
s331000954 | p02410 | u920118302 | 1454642301 | Python | Python3 | py | Runtime Error | 0 | 0 | 269 | n, m = map(int, input().split())
A = []
B = []
for i in range(n):
A.append(map(int, input().split()))
for i in range(m):
B.append(int(input()))
C = []
for i in range(n):
C.append(0)
for j in range(m):
C[i] += int(A[i][j]) * B[j]
print(C[i]) |
s212029679 | p02410 | u047737909 | 1454686267 | Python | Python | py | Runtime Error | 0 | 0 | 219 | a,b = map(int, raw_input().split())
A = [map(int, raw_input().split()) for _ in xrange(a)]
b = [input() for _ in x range(b)]
Ab = [sum([A[i][j] * b[j] for j in x range(b)]) for i in x range(a)]
for x in Ab:
print x |
s592448292 | p02410 | u047737909 | 1454686411 | Python | Python | py | Runtime Error | 0 | 0 | 218 | a,b = map(int, raw_input().split())
A = [map(int, raw_input().split()) for _ in x range(a)]
B = [input() for _ in x range(b)]
C = [sum([A[i][j] * B[j] for j in x range(b)]) for i in x range(a)]
for x in C:
print x |
s540292822 | p02410 | u724923896 | 1454991197 | Python | Python | py | Runtime Error | 0 | 0 | 211 | 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 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.