#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];
}
}
}
}
I2luY2x1ZGUgPHN0ZGlvLmg+CnZvaWQgYXJyYXlfbXVsKGludCgqeClbMl0saW50KCp5KVsyXSxpbnQoKmFucylbMl0pOwppbnQgbWFpbih2b2lkKSB7CgppbnQgeFsyXVsyXT17ezEsMn0sezMsNH0sfTsKaW50IHlbMl1bMl09e3sxLDJ9LHszLDR9LH07CmludCBhbnNbMl1bMl09ezB9OwoKYXJyYXlfbXVsKHgseSxhbnMpOwpmb3IoaW50IGk9MDtpPDI7aSsrKXsKICAgZm9yKGludCBqPTA7ajwyO2orKyl7CiAgICBwcmludGYoIiVkIixhbnNbaV1bal0pOwoJfQoJcHJpbnRmKCJcbiIpOwp9CgoJcmV0dXJuIDA7Cn0Kdm9pZCBhcnJheV9tdWwoaW50KCp4KVsyXSxpbnQoKnkpWzJdLGludCgqYW5zKVsyXSl7CiAgICBmb3IoaW50IGk9MDtpPDI7aSsrKXsKICAgICAgCiAgICAgIGZvcihpbnQgaj0wO2o8MjtqKyspewogICAgICAJZm9yKGludCBrPTA7azwyO2srKyl7CiAgICAgIAkJYW5zW2ldW2pdPXhbaV1ba10qeVtrXVtqXTsKICAgICAgCQl9CiAgICAgIAl9CiAgICAgIH0KICAgIH0KCgo=