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