#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
); }
k=1;
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++){
}
}
return 0;
}
I2luY2x1ZGUgPHN0ZGlvLmg+CiNpbmNsdWRlIDxzdGRsaWIuaD4KCmludCBtYWluKCl7CiAgICBpbnQgaSxqLGs7CiAgICBpbnQgYSxiOwogICAgaW50ICoqbWF0OwogICAgc2NhbmYoIiVkICVkIiwmYSwmYik7CgoJbWF0PShpbnQqKiltYWxsb2Moc2l6ZW9mKGludCkqYSk7CiAgICAKICAgIGZvcihpPTA7IGk8YTsgaSsrKXsKICAgIAltYXRbaV09KGludCAqKiltYWxsb2Moc2l6ZW9mKGludCkqYik7CiAgICB9CgkKCWs9MTsKCQoJZm9yKGk9MDsgaTxhOyBpKyspewoJCWZvcihqPTA7IGo8YjsgaisrKXsKCQkJbWF0W2ldW2pdPWsrKzsKCQl9Cgl9CgogICAgZm9yKGk9MDtpPGE7aSsrKXsKICAgICAgICBmb3Ioaj0wO2o8YjtqKyspewogICAgICAgICAgICBwcmludGYoIiVkICIsbWF0W2ldW2pdKTsKICAgICAgICB9CiAgICAgICAgcHJpbnRmKCJcbiIpOwogICAgfQogICAgCiAgICBmcmVlKG1hdCk7CgoKICAgIHJldHVybiAwOwp9Cg==