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