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