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