#include <stdio.h>
int main (void)
{
int a[3][4] = {{1, 2, 3, 4},
{5, 6, 7, 8},
{9, 10, 11, 12}};
int i, j;
for (i = 0; i < 3; i++)
{
for (j = 0; j < 4; j++)
{
printf ("a[%i][%i]=%i\t", i
, j
, a
[i
][j
]); }
}
return 0;
}
I2luY2x1ZGUgPHN0ZGlvLmg+CgppbnQgbWFpbiAodm9pZCkKewogIGludCBhWzNdWzRdID0ge3sxLCAgMiwgIDMsICA0fSwKICAgICAgICAgICAgICAgICB7NSwgIDYsICA3LCAgOH0sCiAgICAgICAgICAgICAgICAgezksIDEwLCAxMSwgMTJ9fTsKICBpbnQgaSwgajsKCiAgZm9yIChpID0gMDsgaSA8IDM7IGkrKykKICAgIHsKICAgICAgZm9yIChqID0gMDsgaiA8IDQ7IGorKykKICAgICAgICB7CiAgICAgICAgICBwcmludGYgKCJhWyVpXVslaV09JWlcdCIsIGksIGosIGFbaV1bal0pOwogICAgICAgIH0KICAgICAgcHJpbnRmICgiXG4iKTsKICAgIH0KCiAgZ2V0Y2hhciAoKTsKICByZXR1cm4gMDsKfQo=