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