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