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