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