# include <stdio.h>
int isPalindrome(char s[]){
int i,j,k;
for(i=0;i<=100;i++){
if(s[i]=='\0') {
j=i-1;
break;
}
}
for(k=0;k<=j/2;k++){
if(s[k]!=s[j-k]) return 0;
}
return 1;
//回文になっているとき1を返す
//回文になっていないとき0を返す
}
//メイン関数は書き換えなくてよいです
int main(){
char s[100];
printf("%s -> %d\n",s
,isPalindrome
(s
)); return 0;
}
IyBpbmNsdWRlIDxzdGRpby5oPgoKaW50IGlzUGFsaW5kcm9tZShjaGFyIHNbXSl7CgoJaW50IGksaixrOwoJZm9yKGk9MDtpPD0xMDA7aSsrKXsKCQlpZihzW2ldPT0nXDAnKSB7CgkJaj1pLTE7CgkJYnJlYWs7CgkJfQoJfQoKCWZvcihrPTA7azw9ai8yO2srKyl7CgkJaWYoc1trXSE9c1tqLWtdKSByZXR1cm4gMDsKCX0KCXJldHVybiAxOwoJCgkvL+WbnuaWh+OBq+OBquOBo+OBpuOBhOOCi+OBqOOBje+8keOCkui/lOOBmQoJLy/lm57mlofjgavjgarjgaPjgabjgYTjgarjgYTjgajjgY3vvJDjgpLov5TjgZkKfQoKLy/jg6HjgqTjg7PplqLmlbDjga/mm7jjgY3mj5vjgYjjgarjgY/jgabjgojjgYTjgafjgZkKaW50IG1haW4oKXsKICAgIGNoYXIgc1sxMDBdOwogICAgc2NhbmYoIiVzIixzKTsKICAgIHByaW50ZigiJXMgLT4gJWRcbiIscyxpc1BhbGluZHJvbWUocykpOwogICAgcmV0dXJuIDA7Cn0K