Source Code Status Test Cases
    Policy: public     Reviewed: 10    
00.00 sec    3116 KB    27 lines     404 bytes    2017-05-20 04:14
#include <iostream>

using namespace std;

int main() {
  int n, m;
  int A[100][100];
  int b[100];

  cin >> n >> m;
  for (int i = 0; i < n; ++i) {
    for (int j = 0; j < m; ++j)
      cin >> A[i][j];
  }
  for (int j = 0; j < m; ++j)
    cin >> b[j];

  for (int i = 0; i < n; ++i) {
    int c = 0;
    for (int j = 0; j < m; ++j)
      c += A[i][j] * b[j];
    cout << c << endl;
  }

  return 0;
}

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

Status
Judge: 18/18 C++ CPU: 00.00 sec Memory: 3116 KB Length: 404 B 2017-05-20 04:14 2017-05-20 04:14
Results for testcases
Case # Verdict CPU Time Memory In Out Case Name
Case #1: : Accepted 00.00 sec 3060 KB
Case #2: : Accepted 00.00 sec 3084 KB
Case #3: : Accepted 00.00 sec 3088 KB
Case #4: : Accepted 00.00 sec 3000 KB
Case #5: : Accepted 00.00 sec 3072 KB
Case #6: : Accepted 00.00 sec 2984 KB
Case #7: : Accepted 00.00 sec 3000 KB
Case #8: : Accepted 00.00 sec 3000 KB
Case #9: : Accepted 00.00 sec 3068 KB
Case #10: : Accepted 00.00 sec 3060 KB
Case #11: : Accepted 00.00 sec 3092 KB
Case #12: : Accepted 00.00 sec 3056 KB
Case #13: : Accepted 00.00 sec 3052 KB
Case #14: : Accepted 00.00 sec 3076 KB
Case #15: : Accepted 00.00 sec 3008 KB
Case #16: : Accepted 00.00 sec 3088 KB
Case #17: : Accepted 00.00 sec 3112 KB
Case #18: : Accepted 00.00 sec 3116 KB
< prev | / | next >  
 
Judge Input #  ( | ) Judge Output #  ( | )


Comments
 
 Under Construction.
 
Categories
 
 
Free Tags