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