#include <stdio.h>
#include <stdlib.h>
int main(){
int i,j,k,q=0;
int a,b;
int **mat;
mat
=(int **)malloc(sizeof(int*)*a
); for(i=0;i<a;i++){
mat
[i
]=(int **)malloc(sizeof(int*)*b
); }
for(int t=0;t<a;t++){
for(int r=0;r<b;r++,q++){
mat[t][r]=q;
}
}
//以下の部分は表示の部分です
//いじらなくてOK
for(i=0;i<a;i++){
for(j=0;j<b;j++){
}
}
return 0;
}
I2luY2x1ZGUgPHN0ZGlvLmg+CiNpbmNsdWRlIDxzdGRsaWIuaD4KCgppbnQgbWFpbigpewogICAgaW50IGksaixrLHE9MDsKICAgIGludCBhLGI7CiAgICBpbnQgKiptYXQ7CiAgICBzY2FuZigiJWQgJWQiLCZhLCZiKTsKICAgICAgICBtYXQ9KGludCAqKiltYWxsb2Moc2l6ZW9mKGludCopKmEpOwogICAgZm9yKGk9MDtpPGE7aSsrKXsKICAgICAgICBtYXRbaV09KGludCAqKiltYWxsb2Moc2l6ZW9mKGludCopKmIpOwogICAgfQkJCgogICAgZm9yKGludCB0PTA7dDxhO3QrKyl7CiAgICAgICAgZm9yKGludCByPTA7cjxiO3IrKyxxKyspewogICAgICAgICAgIG1hdFt0XVtyXT1xOwogICAgICAgIH0KICAgIH0KCiAgICAKICAgIC8v5Lul5LiL44Gu6YOo5YiG44Gv6KGo56S644Gu6YOo5YiG44Gn44GZCiAgICAvL+OBhOOBmOOCieOBquOBj+OBpk9LCiAgICBmb3IoaT0wO2k8YTtpKyspewogICAgICAgIGZvcihqPTA7ajxiO2orKyl7CiAgICAgICAgICAgIHByaW50ZigiJWQgIixtYXRbaV1bal0pOwogICAgICAgIH0KICAgICAgICBwcmludGYoIlxuIik7CiAgICB9CiAgICAKCWZyZWUobWF0KTsKCgogICAgcmV0dXJuIDA7Cn0K