Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- # coding: utf-8
- # Your code here!
- # ITP1_6_D
- matrix=list()
- col=list()
- y,x=map(int,input().split())
- for _ in range(y):
- matrix.append(list(map(int,input().split())))
- for _ in range(x):
- col.append(int(input()))
- for j in range(y):
- result=0
- for i in range(x):
- result+=matrix[j][i]*col[i]
- print(result)
Add Comment
Please, Sign In to add comment