# include <stdio.h>
int isPalindrome(char s[]){
int i;
for(i=0;s[i]!='\0';i++);
int q;
for(q=0;q<i/2;q++){
if(s[q]==s[i-q-1])
continue;
else
break;
}
if(q==i-q-1)
return 1;
else
return 0;
}
//メイン関数は書き換えなくてよいです
int main(){
char s[100];
printf("%s -> %d\n",s
,isPalindrome
(s
)); return 0;
}
IyBpbmNsdWRlIDxzdGRpby5oPgogCmludCBpc1BhbGluZHJvbWUoY2hhciBzW10pewoJaW50IGk7CiAgICBmb3IoaT0wO3NbaV0hPSdcMCc7aSsrKTsKICAgIGludCBxOwogICAgZm9yKHE9MDtxPGkvMjtxKyspewogICAgCWlmKHNbcV09PXNbaS1xLTFdKQogICAgCWNvbnRpbnVlOwogICAgCWVsc2UgCiAgICAJYnJlYWs7CiAgICB9CiAgICBpZihxPT1pLXEtMSkKICAgIHJldHVybiAxOwogICAgZWxzZQogICAgcmV0dXJuIDA7CiAgICAKfQogCi8v44Oh44Kk44Oz6Zai5pWw44Gv5pu444GN5o+b44GI44Gq44GP44Gm44KI44GE44Gn44GZCmludCBtYWluKCl7CiAgICBjaGFyIHNbMTAwXTsKICAgIHNjYW5mKCIlcyIscyk7CiAgICBwcmludGYoIiVzIC0+ICVkXG4iLHMsaXNQYWxpbmRyb21lKHMpKTsKICAgIHJldHVybiAwOwp9CiA=