#include <stdio.h>
#include <string.h>
int isPalindrome(char s[]) {
for (int i = 0; i < len / 2; i++) {
if (s[i] != s[len - i - 1]) {
return 0;
}
}
return 1;
}
int main() {
char s[100];
printf("%s -> %d\n", s
, isPalindrome
(s
)); return 0;
}
I2luY2x1ZGUgPHN0ZGlvLmg+CiNpbmNsdWRlIDxzdHJpbmcuaD4KCmludCBpc1BhbGluZHJvbWUoY2hhciBzW10pIHsKICAgIGludCBsZW4gPSBzdHJsZW4ocyk7CiAgICBmb3IgKGludCBpID0gMDsgaSA8IGxlbiAvIDI7IGkrKykgewogICAgICAgIGlmIChzW2ldICE9IHNbbGVuIC0gaSAtIDFdKSB7CiAgICAgICAgICAgIHJldHVybiAwOwogICAgICAgIH0KICAgIH0KICAgIHJldHVybiAxOwp9CgppbnQgbWFpbigpIHsKICAgIGNoYXIgc1sxMDBdOwogICAgc2NhbmYoIiVzIiwgcyk7CiAgICBwcmludGYoIiVzIC0+ICVkXG4iLCBzLCBpc1BhbGluZHJvbWUocykpOwogICAgcmV0dXJuIDA7Cn0=