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