# include <stdio.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;
}
IyBpbmNsdWRlIDxzdGRpby5oPgoKaW50IGlzUGFsaW5kcm9tZShjaGFyIHNbXSl7CglpbnQgbGVmdCA9IDA7CglpbnQgcmlnaHQgPSBzdHJsZW4ocykgLTE7CgkKCXdoaWxlIChsZWZ0IDwgcmlnaHQpewoJCWlmIChzW2xlZnRdICE9IHNbcmlnaHRdKXsKCQkJcmV0dXJuIDA7CgkJfQoJCWxlZnQrKzsKCQlyaWdodC0tOwoJfQoJcmV0dXJuIDE7Cn0KCgppbnQgbWFpbigpewogICAgY2hhciBzWzEwMF07CiAgICBzY2FuZigiJXMiLHMpOwogICAgcHJpbnRmKCIlcyAtPiAlZFxuIixzLGlzUGFsaW5kcm9tZShzKSk7CiAgICByZXR1cm4gMDsKfQo=