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