#include <stdio.h>
#include <stdlib.h>
//必要があれば変数などを追加してもOKです
int main(){
int i,j,k,l=0;
int a,b;
int **mat;
if(mat==NULL){
return 0;
}
for(i=0;i<a;i++){
mat
[i
] = malloc(sizeof(int)*b
); }
//ここで2次元配列の動的確保をする
for(j=0;j<a;j++){
for(k=0;k<b;k++){
mat[j][k]=l;
l++;
}
}
//ここで2次元配列に数値を代入する
//以下の部分は表示の部分です
//いじらなくてOK
for(i=0;i<a;i++){
for(j=0;j<b;j++){
}
}
for(i = 0; i < a; i++){
}
//さて,最後に忘れずにすることと言えば?
return 0;
}
I2luY2x1ZGUgPHN0ZGlvLmg+CiNpbmNsdWRlIDxzdGRsaWIuaD4KCi8v5b+F6KaB44GM44GC44KM44Gw5aSJ5pWw44Gq44Gp44KS6L+95Yqg44GX44Gm44KCT0vjgafjgZkKCmludCBtYWluKCl7CiAgICBpbnQgaSxqLGssbD0wOwogICAgaW50IGEsYjsKICAgIGludCAqKm1hdDsKICAgIHNjYW5mKCIlZCAlZCIsJmEsJmIpOwptYXQgPSBtYWxsb2Moc2l6ZW9mKGludCopKmEpOwppZihtYXQ9PU5VTEwpewogcHJpbnRmKCJFUlJPUlxuIik7CiAgcmV0dXJuIDA7Cn0KIGZvcihpPTA7aTxhO2krKyl7CiAJbWF0W2ldID0gbWFsbG9jKHNpemVvZihpbnQpKmIpOwogfQoJLy/jgZPjgZPjgacy5qyh5YWD6YWN5YiX44Gu5YuV55qE56K65L+d44KS44GZ44KLCiAgICBmb3Ioaj0wO2o8YTtqKyspewogICAgZm9yKGs9MDtrPGI7aysrKXsKICAgIAltYXRbal1ba109bDsKICAgIAlsKys7CiAgICB9CiAgICB9CgkvL+OBk+OBk+OBpzLmrKHlhYPphY3liJfjgavmlbDlgKTjgpLku6PlhaXjgZnjgosKCQogICAgCiAgICAvL+S7peS4i+OBrumDqOWIhuOBr+ihqOekuuOBrumDqOWIhuOBp+OBmQogICAgLy/jgYTjgZjjgonjgarjgY/jgaZPSwogICAgZm9yKGk9MDtpPGE7aSsrKXsKICAgICAgICBmb3Ioaj0wO2o8YjtqKyspewogICAgICAgICAgICBwcmludGYoIiVkICIsbWF0W2ldW2pdKTsKICAgICAgICB9CiAgICAgICAgcHJpbnRmKCJcbiIpOwogICAgfQogICAgZm9yKGkgPSAwOyBpIDwgYTsgaSsrKXsKICAgICAgICBmcmVlKG1hdFtpXSk7IAogICAgfQogICAgZnJlZShtYXQpOyAgCiAgICAvL+OBleOBpu+8jOacgOW+jOOBq+W/mOOCjOOBmuOBq+OBmeOCi+OBk+OBqOOBqOiogOOBiOOBsO+8nwoKCiAgICByZXR1cm4gMDsKfQo=