#include <stdio.h>
#include <stdlib.h>
int main() {
int i, j, k = 1;
int a, b;
int **mat;
mat
= (int **)malloc(sizeof(int *) * a
); for(i = 0; i < a; i++) {
mat
[i
] = (int *)malloc(sizeof(int) * b
); }
for(i = 0; i < a; i++) {
for(j = 0; j < b; j++) {
mat[i][j] = k++;
}
}
for(i = 0; i < a; i++) {
for(j = 0; j < b; j++) {
}
}
for(i = 0; i < a; i++) {
}
return 0;
}
I2luY2x1ZGUgPHN0ZGlvLmg+CiNpbmNsdWRlIDxzdGRsaWIuaD4KCmludCBtYWluKCkgewogICAgaW50IGksIGosIGsgPSAxOyAgCiAgICBpbnQgYSwgYjsKICAgIGludCAqKm1hdDsKICAgIAogICAgCiAgICBzY2FuZigiJWQgJWQiLCAmYSwgJmIpOwoKICAgIAogICAgbWF0ID0gKGludCAqKiltYWxsb2Moc2l6ZW9mKGludCAqKSAqIGEpOyAKICAgIGZvcihpID0gMDsgaSA8IGE7IGkrKykgewogICAgICAgIG1hdFtpXSA9IChpbnQgKiltYWxsb2Moc2l6ZW9mKGludCkgKiBiKTsgCiAgICB9CgogICAgCiAgICBmb3IoaSA9IDA7IGkgPCBhOyBpKyspIHsKICAgICAgICBmb3IoaiA9IDA7IGogPCBiOyBqKyspIHsKICAgICAgICAgICAgbWF0W2ldW2pdID0gaysrOyAKICAgICAgICB9CiAgICB9CgogICAgCiAgICBmb3IoaSA9IDA7IGkgPCBhOyBpKyspIHsKICAgICAgICBmb3IoaiA9IDA7IGogPCBiOyBqKyspIHsKICAgICAgICAgICAgcHJpbnRmKCIlZCAiLCBtYXRbaV1bal0pOwogICAgICAgIH0KICAgICAgICBwcmludGYoIlxuIik7CiAgICB9CgogICAKICAgIGZvcihpID0gMDsgaSA8IGE7IGkrKykgewogICAgICAgIGZyZWUobWF0W2ldKTsgCiAgICB9CiAgICBmcmVlKG1hdCk7IAoKICAgIHJldHVybiAwOwp9Cg==