#include <stdio.h>
#include <stdlib.h>
//必要があれば変数などを追加してもOKです
int main(){
int i,j,k,s,t;
int a,b;
int **mat;
mat
=(int **)malloc(sizeof(int)*a
);
for(k=0; k<a; k++){
mat
[k
]=(int *)malloc(sizeof(int)*b
); }
if(a==NULL){
return 0;
}
for(s=0; s<a; s++){
for(t=0; t<b; t++){
mat[s][t]=s*b+t+1;
}
}
for(i=0;i<a;i++){
for(j=0;j<b;j++){
}
}
return 0;
}
I2luY2x1ZGUgPHN0ZGlvLmg+CiNpbmNsdWRlIDxzdGRsaWIuaD4KCi8v5b+F6KaB44GM44GC44KM44Gw5aSJ5pWw44Gq44Gp44KS6L+95Yqg44GX44Gm44KCT0vjgafjgZkKCmludCBtYWluKCl7CiAgICBpbnQgaSxqLGsscyx0OwogICAgaW50IGEsYjsKICAgIGludCAqKm1hdDsKICAgIHNjYW5mKCIlZCAlZCIsJmEsJmIpOwoKCW1hdD0oaW50ICoqKW1hbGxvYyhzaXplb2YoaW50KSphKTsKCQoJZm9yKGs9MDsgazxhOyBrKyspewoJCW1hdFtrXT0oaW50ICopbWFsbG9jKHNpemVvZihpbnQpKmIpOwoJfQoJaWYoYT09TlVMTCl7CgkJcHJpbnRmKCJFUlJPUlxuIik7CiAgICAgICAgcmV0dXJuIDA7Cgl9CiAgICAKICAgIGZvcihzPTA7IHM8YTsgcysrKXsKICAgIAlmb3IodD0wOyB0PGI7IHQrKyl7CiAgICAJCW1hdFtzXVt0XT1zKmIrdCsxOwogICAgCX0KICAgIH0KICAgIAogICAgZm9yKGk9MDtpPGE7aSsrKXsKICAgICAgICBmb3Ioaj0wO2o8YjtqKyspewogICAgICAgICAgICBwcmludGYoIiUyZCAiLG1hdFtpXVtqXSk7CiAgICAgICAgfQogICAgICAgIHByaW50ZigiXG4iKTsKICAgIH0KICAgIAoJZnJlZShtYXQpOwoKICAgIHJldHVybiAwOwp9Cg==