#include <stdio.h>
int isPalindrome(char s[]){
int i=0,len;
for(len=0;s[len+1]!='\0';len++);
while(i<=len){
if(s[i++]!=s[len--]) return 0;
}
return 1;
}
int main(){
char s[100];
printf("%s -> %d\n",s
,isPalindrome
(s
)); return 0;
}
I2luY2x1ZGUgPHN0ZGlvLmg+CgppbnQgaXNQYWxpbmRyb21lKGNoYXIgc1tdKXsKICAgIGludCBpPTAsbGVuOwogICAgZm9yKGxlbj0wO3NbbGVuKzFdIT0nXDAnO2xlbisrKTsKCiAgICB3aGlsZShpPD1sZW4pewogICAgICAgIGlmKHNbaSsrXSE9c1tsZW4tLV0pIHJldHVybiAwOwogICAgfQogICAgcmV0dXJuIDE7Cn0KCmludCBtYWluKCl7CiAgICBjaGFyIHNbMTAwXTsKICAgIHNjYW5mKCIlcyIscyk7CiAgICBwcmludGYoIiVzIC0+ICVkXG4iLHMsaXNQYWxpbmRyb21lKHMpKTsKICAgIHJldHVybiAwOwp9