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