#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++){
for(int k=0;k<2;k++){
ans[i][j]=x[i][k]*y[k][j]+ans[i][j];
}
}
}
}
I2luY2x1ZGUgPHN0ZGlvLmg+Cgp2b2lkIGFycmF5X211bCggaW50ICgqeClbMl0sIGludCAoKnkpWzJdLCBpbnQgKCphbnMpWzJdICk7CmludCBtYWluKHZvaWQpIHsKCWludCB4WzJdWzJdPXsgezEsMn0sezMsNH0gfTsKCWludCB5WzJdWzJdPXsgezEsMn0sezMsNH0gfTsKCWludCBhbnNbMl1bMl09eyAwIH07CglhcnJheV9tdWwoeCx5LGFucyk7Cglmb3IoaW50IGk9MDtpPDI7aSsrKXsKCQlmb3IoaW50IGo9MDtqPDI7aisrKXsKCQkJcHJpbnRmKCIlZCAiLGFuc1tpXVtqXSk7CgkJfQoJCXByaW50ZigiXG4iKTsKCX0KCXJldHVybiAwOwp9CnZvaWQgYXJyYXlfbXVsKCBpbnQgKCp4KVsyXSwgaW50ICgqeSlbMl0sIGludCAoKmFucylbMl0gKXsKCWZvcihpbnQgaT0wO2k8MjtpKyspewoJCWZvcihpbnQgaj0wO2o8MjtqKyspewoJCQlmb3IoaW50IGs9MDtrPDI7aysrKXsKCQkJCWFuc1tpXVtqXT14W2ldW2tdKnlba11bal0rYW5zW2ldW2pdOwoJCQkKCQkJfQoJCX0KCX0KfQ==