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