#include <stdio.h>
void array_mul(int(*x)[2],int(*y)[2],int(*ans)[2]);
int main(void) {
int x[2][2]={{1,2},{3,4}};
int y[2][2]={{1,2},{3,4}};
int ans[2][2]={0};
array_mul(x,y,ans);
for(int i=0;i<2;i++){
for(int j=0;j<2;j++){
}
}
return 0;
}
void array_mul(int(*x)[2],int(*y)[2],int(*ans)[2])
{for(int i=0;i<2;i++){
for(int j=0;j<2;j++){
ans[i][j]=0;
for(int k=0;k<2;k++){
ans[i][j]+=x[i][k]*y[k][j];
}
}
}
}
I2luY2x1ZGUgPHN0ZGlvLmg+CnZvaWQgYXJyYXlfbXVsKGludCgqeClbMl0saW50KCp5KVsyXSxpbnQoKmFucylbMl0pOwppbnQgbWFpbih2b2lkKSB7CmludCB4WzJdWzJdPXt7MSwyfSx7Myw0fX07CmludCB5WzJdWzJdPXt7MSwyfSx7Myw0fX07CmludCBhbnNbMl1bMl09ezB9OwoKYXJyYXlfbXVsKHgseSxhbnMpOwpmb3IoaW50IGk9MDtpPDI7aSsrKXsKCWZvcihpbnQgaj0wO2o8MjtqKyspewoJCXByaW50ZigiJWQiLGFuc1tpXVtqXSk7Cgl9CglwcmludGYoIlxuIik7Cn0KCXJldHVybiAwOwp9CnZvaWQgYXJyYXlfbXVsKGludCgqeClbMl0saW50KCp5KVsyXSxpbnQoKmFucylbMl0pCntmb3IoaW50IGk9MDtpPDI7aSsrKXsKCWZvcihpbnQgaj0wO2o8MjtqKyspewoJCWFuc1tpXVtqXT0wOwoJCWZvcihpbnQgaz0wO2s8MjtrKyspewoJCQlhbnNbaV1bal0rPXhbaV1ba10qeVtrXVtqXTsKCQl9Cgl9Cn0KfQo=