# 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;
}
IyBpbmNsdWRlIDxzdGRpby5oPgogCmludCBpc1BhbGluZHJvbWUoY2hhciBzW10pewoJaW50IHRbMTAwXTsKCWludCBjb3VudD0wOwogCgkJZm9yKGludCBpPTA7c1tpXSE9J1wwJztpKyspewoJCQljb3VudCArKzsKfQogCgkJZm9yKGludCBqPTA7ajxjb3VudDtqKyspewoJCQl0W2pdPXNbY291bnQtai0xXTsKfQogCgkJZm9yKGludCBrPTA7c1trXT09dFtrXTtrKyspewoJCWlmKHNba109PSdcMCcpIHJldHVybiAxOwp9CiAKcmV0dXJuIDA7CiAKfQppbnQgbWFpbigpewogICAgY2hhciBzWzEwMF07CiAgICBzY2FuZigiJXMiLHMpOwogICAgcHJpbnRmKCIlcyAtPiAlZFxuIixzLGlzUGFsaW5kcm9tZShzKSk7CiAgICByZXR1cm4gMDsKfQ==