#include <stdio.h>
int main()
{
int a[2][2] = {{1,2},{3,4}};
int b[2][1] = {{1},{3}};
int c[2][1];
c[0][0] = a[0][0] * b[0][0] + a[0][1] * b[1][0];
c[1][0] = a[1][0] * b[0][0] + a[1][1] * b[1][0];
printf("{%d,%d}\n", c
[0][0], c
[1][0]); return 0;
}
I2luY2x1ZGUgPHN0ZGlvLmg+CgppbnQgbWFpbigpCnsKCWludCBhWzJdWzJdID0ge3sxLDJ9LHszLDR9fTsKCWludCBiWzJdWzFdID0ge3sxfSx7M319OwoJaW50IGNbMl1bMV07CgoJY1swXVswXSA9IGFbMF1bMF0gKiBiWzBdWzBdICsgYVswXVsxXSAqIGJbMV1bMF07CgljWzFdWzBdID0gYVsxXVswXSAqIGJbMF1bMF0gKyBhWzFdWzFdICogYlsxXVswXTsKCXByaW50ZigieyVkLCVkfVxuIiwgY1swXVswXSwgY1sxXVswXSk7CglyZXR1cm4gMDsKfQo=