using System;
using System.Collections.Generic;
class Solution {
/**
* 代码中的类名、方法名、参数名已经指定,请勿修改,直接返回方法规定的值即可
*
*
* @param a int整型二维数组 第一个矩阵
* @param b int整型二维数组 第二个矩阵
* @return int整型二维数组
*/
public List<List<int>> solve (List<List<int>> a, List<List<int>> b) {
// write code here
if (a == null || b == null)
return null;
List<List<int>> lslsN = new List<List<int>>();
for (int i = 0; i < a.Count; i++) {
lslsN.Add(new List<int>());
for (int j = 0; j < b[i].Count; j++) {
int nSum = 0;
for (int k = 0; k < a[i].Count; k++)
nSum += a[i][k] * b[k][j];
lslsN[i].Add(nSum);
}
}
return lslsN;
}
}