# include <stdio.h>
int isPalindrome(char s[]){
int left = 0;
int right = 0;
while (s[right] != '\0') {
right++;
}
right--;
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;
}
IyBpbmNsdWRlIDxzdGRpby5oPgoKaW50IGlzUGFsaW5kcm9tZShjaGFyIHNbXSl7CgkgICAgaW50IGxlZnQgPSAwOwogICAgaW50IHJpZ2h0ID0gMDsKCiAgICB3aGlsZSAoc1tyaWdodF0gIT0gJ1wwJykgewogICAgICAgIHJpZ2h0Kys7CiAgICB9CiAgICByaWdodC0tOyAgCgogICAgd2hpbGUgKGxlZnQgPCByaWdodCkgewogICAgICAgIGlmIChzW2xlZnRdICE9IHNbcmlnaHRdKSB7CiAgICAgICAgICAgIHJldHVybiAwOyAgCiAgICAgICAgfQogICAgICAgIGxlZnQrKzsKICAgICAgICByaWdodC0tOwogICAgfQogICAgcmV0dXJuIDE7Cn0KCmludCBtYWluKCl7CiAgICBjaGFyIHNbMTAwXTsKICAgIHNjYW5mKCIlcyIscyk7CiAgICBwcmludGYoIiVzIC0+ICVkXG4iLHMsaXNQYWxpbmRyb21lKHMpKTsKICAgIHJldHVybiAwOwp9Cg==