# 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];
}
t[count+1]='\0';
for(int k=0;k<=count;k++){
if(s[k]!=t[k]) return 0;
}
return 1;
}
int main(){
char s[100];
printf("%s -> %d\n",s
,isPalindrome
(s
)); return 0;
}
IyBpbmNsdWRlIDxzdGRpby5oPgogCmludCBpc1BhbGluZHJvbWUoY2hhciBzW10pewoJaW50IHRbMTAwXTsKCWludCBjb3VudD0wOwogCgkJZm9yKGludCBpPTA7c1tpXSE9J1wwJztpKyspewoJCQljb3VudCArKzsKfQogCgkJZm9yKGludCBqPTA7ajxjb3VudDtqKyspewoJCQl0W2pdPXNbY291bnQtai0xXTsKfQoKCQl0W2NvdW50KzFdPSdcMCc7CiAKCQlmb3IoaW50IGs9MDtrPD1jb3VudDtrKyspewoJCWlmKHNba10hPXRba10pIHJldHVybiAwOwp9CiAKcmV0dXJuIDE7CiAKfQppbnQgbWFpbigpewogICAgY2hhciBzWzEwMF07CiAgICBzY2FuZigiJXMiLHMpOwogICAgcHJpbnRmKCIlcyAtPiAlZFxuIixzLGlzUGFsaW5kcm9tZShzKSk7CiAgICByZXR1cm4gMDsKfQ==