#include <stdio.h>
#include <stdlib.h>
//必要があれば変数などを追加してもOKです
int main(){
int i,j,k;
int a,b;
int **mat;
mat
=(int**)malloc(sizeof(int*)*a
);
for(i=0;i<b;i++){
mat
[i
]=(int*)malloc(sizeof(int)*b
); if(mat[i]==NULL){
return 0;
}
}
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;
}
I2luY2x1ZGUgPHN0ZGlvLmg+CiNpbmNsdWRlIDxzdGRsaWIuaD4KIAovL+W/heimgeOBjOOBguOCjOOBsOWkieaVsOOBquOBqeOCkui/veWKoOOBl+OBpuOCgk9L44Gn44GZCiAKaW50IG1haW4oKXsKICAgIGludCBpLGosazsKICAgIGludCBhLGI7CiAgICBpbnQgKiptYXQ7CiAgICBzY2FuZigiJWQgJWQiLCZhLCZiKTsKIAoJbWF0PShpbnQqKiltYWxsb2Moc2l6ZW9mKGludCopKmEpOwoJCglmb3IoaT0wO2k8YjtpKyspewoJCW1hdFtpXT0oaW50KiltYWxsb2Moc2l6ZW9mKGludCkqYik7CgkJaWYobWF0W2ldPT1OVUxMKXsKCQkJcHJpbnRmKCJFcnJvclxuIik7CgkJCXJldHVybiAwOwoJCX0KCX0KCWZvcihpPTA7aTxhO2krKyl7CgkJZm9yKGo9MDtqPGI7aisrKXsKCQkJbWF0W2ldW2pdPWsrKzsKCQl9Cgl9CiAgICBmb3IoaT0wO2k8YTtpKyspewogICAgICAgIGZvcihqPTA7ajxiO2orKyl7CiAgICAgICAgICAgIHByaW50ZigiJWQgIixtYXRbaV1bal0pOwogICAgICAgIH0KICAgICAgICBwcmludGYoIlxuIik7CiAgICB9CiAKZnJlZShtYXQpOyAKIAogICAgcmV0dXJuIDA7Cn0=