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