#include <stdio.h>
#include <string.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(){
char s[100];
printf("%s -> %d\n",s
,isPalindrome
(s
)); return 0;
}
I2luY2x1ZGUgPHN0ZGlvLmg+CiNpbmNsdWRlIDxzdHJpbmcuaD4KCmludCBpc1BhbGluZHJvbWUoY2hhciBzW10pewoJaW50IGksbjsKCWZvcihpPTA7c1tpXSE9J1wwJztpKyspOwoJbj1pLTE7Cglmb3IoaT0wO3NbaV09PXNbbi1pXTtpKyspewoJCWlmKHNbaV09c1tuLWldKSByZXR1cm4gMTsKCX0KCXJldHVybiAwOwp9CgppbnQgbWFpbigpewogICAgY2hhciBzWzEwMF07CiAgICBzY2FuZigiJXMiLHMpOwogICAgcHJpbnRmKCIlcyAtPiAlZFxuIixzLGlzUGFsaW5kcm9tZShzKSk7CiAgICByZXR1cm4gMDsKfQ==