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