#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<b;i++){
mat
[i
]=(int *)malloc(sizeof(int)*b
); }
if(mat==NULL){
return 0;
}
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++){
}
}
return 0;
}
I2luY2x1ZGUgPHN0ZGlvLmg+CiNpbmNsdWRlIDxzdGRsaWIuaD4KCmludCBtYWluKCl7CiAgICBpbnQgaSxqLGs7CiAgICBpbnQgYSxiOwogICAgaW50ICoqbWF0OwogICAgc2NhbmYoIiVkICVkIiwmYSwmYik7CgoJbWF0PShpbnQgKiopbWFsbG9jKHNpemVvZihpbnQgKikqYSk7Cglmb3IoaT0wO2k8YjtpKyspewoJCW1hdFtpXT0oaW50ICopbWFsbG9jKHNpemVvZihpbnQpKmIpOwoJfQoJCglpZihtYXQ9PU5VTEwpewoJCXByaW50ZigiRVJST1JcbiIpOwoJCXJldHVybiAwOwoJfQogICAgCiAgICBrPTE7Cglmb3IoaT0wO2k8YTtpKyspewogICAgICAgIGZvcihqPTA7ajxiO2orKyl7CiAgICAgICAgICAgbWF0W2ldW2pdPWs7CiAgICAgICAgICAgaysrOwogICAgICAgIH0KICAgIH0KCQogICAgCiAgICBmb3IoaT0wO2k8YTtpKyspewogICAgICAgIGZvcihqPTA7ajxiO2orKyl7CiAgICAgICAgICAgIHByaW50ZigiJWQgIixtYXRbaV1bal0pOwogICAgICAgIH0KICAgICAgICBwcmludGYoIlxuIik7CiAgICB9CiAgICAKICAgIGZyZWUobWF0KTsKCgogICAgcmV0dXJuIDA7Cn0K