#include<stdio.h>
#include<stdlib.h>
int main(){
int i,j,k=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]=k++;
}
}
for(i=0;i<a;i++){
for(j=0;j<b;j++){
}
}
return 0;
}
I2luY2x1ZGU8c3RkaW8uaD4KI2luY2x1ZGU8c3RkbGliLmg+CmludCBtYWluKCl7CglpbnQgaSxqLGs9MTsKCWludCBhLGI7CglpbnQgKiptYXQ7CglzY2FuZigiJWQgJWQiLCZhLCZiKTsKCW1hdD0oaW50ICoqKW1hbGxvYyhhKnNpemVvZihpbnQgKikpOwoJZm9yKGk9MDtpPGE7aSsrKXsKCQltYXRbaV09KGludCAqKW1hbGxvYyhiKnNpemVvZihpbnQpKTsKCX0KCWZvcihpPTA7aTxhO2krKyl7CgkJZm9yKGo9MDtqPGI7aisrKXsKCQkJbWF0W2ldW2pdPWsrKzsKCQl9Cgl9Cglmb3IoaT0wO2k8YTtpKyspewoJCWZvcihqPTA7ajxiO2orKyl7CgkJCXByaW50ZigiJWQgIixtYXRbaV1bal0pOwoJCX0KCQlwcmludGYoIlxuIik7Cgl9CglmcmVlKG1hdCk7CglyZXR1cm4gMDsKfQ==