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