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