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