#include <stdio.h>
#include <stdlib.h>
int main(){
int i,j,k;
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+CiNpbmNsdWRlIDxzdGRsaWIuaD4KCmludCBtYWluKCl7CiAgICBpbnQgaSxqLGs7CiAgICBpbnQgYSxiOwogICAgaW50ICoqbWF0OwogICAgc2NhbmYoIiVkICVkIiwmYSwmYik7CgogICAgbWF0ID0gKGludCAqKiltYWxsb2Moc2l6ZW9mKGludCAqKSAqIGEpOwogICAgZm9yKGkgPSAwOyBpIDwgYTsgaSsrKXsKICAgICAgICBtYXRbaV0gPSAoaW50ICopbWFsbG9jKHNpemVvZihpbnQpICogYik7CiAgICB9CiAgICAKCWZvcihpID0gMDsgaSA8IGE7IGkrKyl7CiAgICAgICAgZm9yKGogPSAwOyBqIDwgYjsgaisrKXsKICAgICAgICAgICAgbWF0W2ldW2pdID0gaysrOwogICAgICAgIH0KICAgIH0KICAgIAogICAgZm9yKGk9MDtpPGE7aSsrKXsKICAgICAgICBmb3Ioaj0wO2o8YjtqKyspewogICAgICAgICAgICBwcmludGYoIiVkICIsbWF0W2ldW2pdKTsKICAgICAgICB9CiAgICAgICAgcHJpbnRmKCJcbiIpOwogICAgfQogICAgCiAgICBmb3IoaSA9IDA7IGkgPCBhOyBpKyspewogICAgICAgIGZyZWUobWF0W2ldKTsKICAgIH0KICAgIGZyZWUobWF0KTsKCiAgICByZXR1cm4gMDsKfQo=