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