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