一本通1125
#include <bits/stdc++.h>
#define rep(i,j,n) for(register int i=j;i<=n;i++)
#define Rep(i,j,n) for(register int i=j;i>=n;i--)
#define low(x) x&(-x)
using namespace std ;
typedef long long LL ;
const int inf = INT_MAX >> 1 ;
inline LL In() { LL res(0) , f(1) ; register char c ;
#define gc c = getchar()
while(isspace(gc)) ; c == '-' ? f = - 1 , gc : 0 ;
while(res = (res << 1) + (res << 3) + (c & 15) , isdigit(gc)) ;
return res * f ;
#undef gc
}
int n , m , k ;
const int N = 100 + 5 ;
int a[N][N] ;
int b[N][N] ;
int ans[N][N] ;
inline void Ot() {
n = In() , m = In() , k = In() ;
rep(i,1,n) rep(j,1,m) a[i][j] = In() ;
rep(i,1,m) rep(j,1,k) b[i][j] = In() ;
rep(i,1,n) rep(j,1,k) rep(k,1,m) ans[i][j] = ans[i][j] + a[i][k] * b[k][j] ;
rep(i,1,n) {
rep(j,1,k) cout << ans[i][j] << ' ' ;
puts("") ;
}
}
signed main() {
// freopen("test.in","r",stdin) ;
return Ot() , 0 ;
}
不存在十全十美的文章 如同不存在彻头彻尾的绝望