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