#include <stdio.h>
int main()
{
int a[][4] = {
{3, 5, -1, 8},
{2, 3, 2, 4},
{4, 2, -5, 3},
};
int row, col, sum = 0;
for (row = 0; row < 3; row++) {
for (col = 0; col < 4; col++) {
sum += a[row][col];
}
}
return 0;
}
I2luY2x1ZGUgPHN0ZGlvLmg+CgppbnQgbWFpbigpCnsKCWludCBhW11bNF0gPSB7CgkJezMsIDUsIC0xLCA4fSwKCQl7MiwgMywgMiwgNH0sCgkJezQsIDIsIC01LCAzfSwKCX07CglpbnQgcm93LCBjb2wsIHN1bSA9IDA7CgoJZm9yIChyb3cgPSAwOyByb3cgPCAzOyByb3crKykgewoJCWZvciAoY29sID0gMDsgY29sIDwgNDsgY29sKyspIHsKCQkJc3VtICs9IGFbcm93XVtjb2xdOwoJCX0KCX0KCXByaW50ZigiJWRcbiIsIHN1bSk7CglyZXR1cm4gMDsKfQo=