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