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