#include <stdio.h>
#include <string.h>
int isPalindrome(char s[]){
int left=0;
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+CiNpbmNsdWRlIDxzdHJpbmcuaD4gIAoKaW50IGlzUGFsaW5kcm9tZShjaGFyIHNbXSl7CiAgICBpbnQgbGVmdD0wOwogICAgaW50IHJpZ2h0PXN0cmxlbihzKS0xOwoKICAgIHdoaWxlKGxlZnQ8cmlnaHQpewogICAgICAgIGlmIChzW2xlZnRdIT1zW3JpZ2h0XSl7CiAgICAgICAgICAgIHJldHVybiAwOyAKICAgICAgICB9CiAgICAgICAgbGVmdCsrOwogICAgICAgIHJpZ2h0LS07CiAgICB9CiAgICByZXR1cm4gMTsgCn0KCmludCBtYWluKCl7CiAgICBjaGFyIHNbMTAwXTsKICAgIHNjYW5mKCIlcyIscyk7CiAgICBwcmludGYoIiVzIC0+ICVkXG4iLHMsaXNQYWxpbmRyb21lKHMpKTsKICAgIHJldHVybiAwOwp9Cg==