Source Code Status Test Cases
    Policy: public     Reviewed: 5    
00.02 sec    7868 KB    14 lines     266 bytes    2017-05-20 05:55
N ,M= input().split()
a=[]
N=int(N)
M=int(M)
for i in range(N):
    a.append(list(map(int,input().split())))
b=[int(input()) for i in range(M)]
x=[0 for i in range(N)]
for i in range(N):
    for j in range(M):
        x[i]+=a[i][j]*b[j]
print("\n".join(map(str,x)))


Compile Error Logs:
You are not authorized to see the message.

Status
Judge: 18/18 Python3 CPU: 00.02 sec Memory: 7868 KB Length: 266 B 2017-05-20 05:55 2017-05-20 05:55
Results for testcases
Case # Verdict CPU Time Memory In Out Case Name
Case #1: : Accepted 00.02 sec 7580 KB
Case #2: : Accepted 00.02 sec 7652 KB
Case #3: : Accepted 00.02 sec 7644 KB
Case #4: : Accepted 00.01 sec 7604 KB
Case #5: : Accepted 00.01 sec 7616 KB
Case #6: : Accepted 00.01 sec 7608 KB
Case #7: : Accepted 00.01 sec 7576 KB
Case #8: : Accepted 00.01 sec 7640 KB
Case #9: : Accepted 00.01 sec 7652 KB
Case #10: : Accepted 00.01 sec 7568 KB
Case #11: : Accepted 00.01 sec 7708 KB
Case #12: : Accepted 00.02 sec 7624 KB
Case #13: : Accepted 00.01 sec 7604 KB
Case #14: : Accepted 00.01 sec 7612 KB
Case #15: : Accepted 00.01 sec 7632 KB
Case #16: : Accepted 00.01 sec 7648 KB
Case #17: : Accepted 00.02 sec 7864 KB
Case #18: : Accepted 00.01 sec 7868 KB
< prev | / | next >  
 
Judge Input #  ( | ) Judge Output #  ( | )


Comments
 
 Under Construction.
 
Categories
 
 
Free Tags