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