#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;
k++;
}
}
for(i=0;i<a;i++){
for(j=0;j<b;j++){
}
}
for(i=0;i<a;i++){
}
return 0;
}
I2luY2x1ZGUgPHN0ZGlvLmg+CiNpbmNsdWRlIDxzdGRsaWIuaD4KCmludCBtYWluKCl7CiAgICBpbnQgaSxqLGs7CiAgICBpbnQgYSxiOwogICAgaW50ICoqbWF0OwogICAgc2NhbmYoIiVkICVkIiwmYSwmYik7CiAgICAKICAgIG1hdD0oaW50KiopbWFsbG9jKHNpemVvZiAoaW50KSphKTsKICAgIGZvcihpPTA7aTxhO2krKyl7CiAgICAJbWF0W2ldPShpbnQqKW1hbGxvYyhzaXplb2YoaW50KSpiKTsKICAgIH0KICAgIAogICAgaz0xOwogICAgZm9yKGk9MDtpPGE7aSsrKXsKICAgIAlmb3Ioaj0wO2o8YjtqKyspewogICAgCQltYXRbaV1bal09azsKICAgIAkJaysrOwogICAgCX0KICAgIH0KCmZvcihpPTA7aTxhO2krKyl7CiAgICAgICAgZm9yKGo9MDtqPGI7aisrKXsKICAgICAgICAgICAgcHJpbnRmKCIlZCAiLG1hdFtpXVtqXSk7CiAgICAgICAgfQogICAgICAgIHByaW50ZigiXG4iKTsKICAgIH0KICAgIAogICAgZm9yKGk9MDtpPGE7aSsrKXsKICAgIAlmcmVlKG1hdFtpXSk7CiAgICB9CglmcmVlKG1hdCk7CgogICAgcmV0dXJuIDA7Cn0K