# include <stdio.h>
int isPalindrome(char s[]){
int i;
for(i=0; s[i]!='\0'; i++){
;
}
int j=(i-1)/2;
for(int k=0; k<j; k++){
if(s[k]!=s[i-1])
return 0;
i--;
}
return 1;
}
//メイン関数は書き換えなくてよいです
int main(){
char s[100];
printf("%s -> %d\n",s
,isPalindrome
(s
)); return 0;
}
IyBpbmNsdWRlIDxzdGRpby5oPgoKaW50IGlzUGFsaW5kcm9tZShjaGFyIHNbXSl7CglpbnQgaTsKCWZvcihpPTA7IHNbaV0hPSdcMCc7IGkrKyl7CgkJOwoJfQoJaW50IGo9KGktMSkvMjsKCSAgICBmb3IoaW50IGs9MDsgazxqOyBrKyspewoJICAgIAlpZihzW2tdIT1zW2ktMV0pCgkgICAgCSAgICByZXR1cm4gMDsKCSAgICAJaS0tOwoJICAgIH0KICAgIHJldHVybiAxOwp9CgovL+ODoeOCpOODs+mWouaVsOOBr+abuOOBjeaPm+OBiOOBquOBj+OBpuOCiOOBhOOBp+OBmQppbnQgbWFpbigpewogICAgY2hhciBzWzEwMF07CiAgICBzY2FuZigiJXMiLHMpOwogICAgcHJpbnRmKCIlcyAtPiAlZFxuIixzLGlzUGFsaW5kcm9tZShzKSk7CiAgICByZXR1cm4gMDsKfQo=