# include <stdio.h>
#include <string.h>
int isPalindrome(char s[]){
int start = 0;
while (start < end) {
if (s[start] != s[end]) {
return 0;
}
start++;
end--;
}
return 1;
}
int main(){
char s[100];
printf("%s -> %d\n",s
,isPalindrome
(s
)); return 0;
}
IyBpbmNsdWRlIDxzdGRpby5oPgojaW5jbHVkZSA8c3RyaW5nLmg+CgppbnQgaXNQYWxpbmRyb21lKGNoYXIgc1tdKXsKCWludCBzdGFydCA9IDA7CglpbnQgZW5kID0gc3RybGVuKHMpIC0gMTsKCXdoaWxlIChzdGFydCA8IGVuZCkgewoJCWlmIChzW3N0YXJ0XSAhPSBzW2VuZF0pIHsKCQkJcmV0dXJuIDA7CgkJfQoJCXN0YXJ0Kys7CgkJZW5kLS07Cgl9CglyZXR1cm4gMTsKfQoKaW50IG1haW4oKXsKICAgIGNoYXIgc1sxMDBdOwogICAgc2NhbmYoIiVzIixzKTsKICAgIHByaW50ZigiJXMgLT4gJWRcbiIscyxpc1BhbGluZHJvbWUocykpOwogICAgcmV0dXJuIDA7Cn0K