#include <bits/stdc++.h>
using namespace std;
int n, m, p, a[105][105], b[105][105], c[105][105];
int main()
{
cin >> n >> m >> p;
for(int i = 1; i <= n; i++)
for(int j = 1; j <= m; j++)
cin >> a[i][j];
for(int i = 1; i <= m; i++)
for(int j = 1; j <= p; j++)
cin >> b[i][j];
for(int i = 1; i <= n; i++)
for(int j = 1; j <= p; j++)
for(int k = 1; k <= n; i++)
c[i][j] += a[i][k] * b[k][j];
for(int i = 1; i <= n; i++)
{
for(int j = 1; j <= p; j++)
cout << c[i][j] << " ";
cout << "\n";
}
return 0;
}
当我评测的时候,屏幕紫了。