# include <stdio.h>
int isPalindrome(char s[]){
int count=0;
do{
count++;
}while(s[count]!='\0');
for(int i=0; i<(count/2);i++){
if(s[i]!=s[count-i-1]){
return 0;
}
}
return 1;
}
//メイン関数は書き換えなくてよいです
int main(){
char s[100];
printf("%s -> %d\n",s
,isPalindrome
(s
)); return 0;
}
IyBpbmNsdWRlIDxzdGRpby5oPgoKaW50IGlzUGFsaW5kcm9tZShjaGFyIHNbXSl7CglpbnQgY291bnQ9MDsKCQoJZG97CgkJY291bnQrKzsKCX13aGlsZShzW2NvdW50XSE9J1wwJyk7CgkKCWZvcihpbnQgaT0wOyBpPChjb3VudC8yKTtpKyspewoJCWlmKHNbaV0hPXNbY291bnQtaS0xXSl7CgkJCXJldHVybiAwOwoJCX0KCX0KCXJldHVybiAxOwp9CgovL+ODoeOCpOODs+mWouaVsOOBr+abuOOBjeaPm+OBiOOBquOBj+OBpuOCiOOBhOOBp+OBmQppbnQgbWFpbigpewogICAgY2hhciBzWzEwMF07CiAgICBzY2FuZigiJXMiLHMpOwogICAgcHJpbnRmKCIlcyAtPiAlZFxuIixzLGlzUGFsaW5kcm9tZShzKSk7CiAgICByZXR1cm4gMDsKfQo=