#include <stdio.h>
#include <stdlib.h>
//必要があれば変数などを追加してもOKです
int main(){
int i,j,k=5;
int a,b;
int **mat;
//ここで2次元配列の動的確保をする
mat
=(int**)malloc(sizeof(int*)*a
); if(mat==NULL){
}
for(i=0;i<a;i++){
mat
[i
]=(int*)malloc(sizeof(int)*b
); }
if(mat==NULL){
}
for(i=0;i<a;i++){
for(j=0;j<b;j++){
mat[i][j]=k;
k++;
}
}
for(i=0;i<a;i++){
for(j=0;j<b;j++){
}
}
for(i=0;i<a;i++){
}
return 0;
}
I2luY2x1ZGUgPHN0ZGlvLmg+CiNpbmNsdWRlIDxzdGRsaWIuaD4KCi8v5b+F6KaB44GM44GC44KM44Gw5aSJ5pWw44Gq44Gp44KS6L+95Yqg44GX44Gm44KCT0vjgafjgZkKCmludCBtYWluKCl7CiAgICBpbnQgaSxqLGs9NTsKICAgIGludCBhLGI7CiAgICBpbnQgKiptYXQ7CiAgICBzY2FuZigiJWQgJWQiLCZhLCZiKTsKCS8v44GT44GT44GnMuasoeWFg+mFjeWIl+OBruWLleeahOeiuuS/neOCkuOBmeOCiwoJbWF0PShpbnQqKiltYWxsb2Moc2l6ZW9mKGludCopKmEpOwoJaWYobWF0PT1OVUxMKXsKCQlwcmludGYoIkVSUk9SXG4iKTsKCX0KCWZvcihpPTA7aTxhO2krKyl7CgkJbWF0W2ldPShpbnQqKW1hbGxvYyhzaXplb2YoaW50KSpiKTsKCX0KCWlmKG1hdD09TlVMTCl7CgkJcHJpbnRmKCJFUlJPUlxuIik7Cgl9Cglmb3IoaT0wO2k8YTtpKyspewoJCWZvcihqPTA7ajxiO2orKyl7CgkJCW1hdFtpXVtqXT1rOwoJCQlrKys7CgkJfQoJfQoJZm9yKGk9MDtpPGE7aSsrKXsKCQlmb3Ioaj0wO2o8YjtqKyspewoJCQlwcmludGYoIiVkICIsbWF0W2ldW2pdKTsKCQl9CgkJcHJpbnRmKCJcbiIpOwoJfQogICAgCglmb3IoaT0wO2k8YTtpKyspewoJCWZyZWUobWF0W2ldKTsKCX0KCWZyZWUobWF0KTsKCXJldHVybiAwOwp9