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