# include <stdio.h>
int isPalindrome(char s[]){
//関数の中だけを書き換えてください
//回文になっているとき1を返す
//回文になっていないとき0を返す
int ans=1;
int count=0;
while(s[count] != '\0')
count++;
int t=count-1;
for(int i=0; i<count/2; i++){
if(s[i]!=s[t--])
return 0;
}
return 1;
}
//メイン関数は書き換えなくてよいです
int main(){
char s[100];
printf("%s -> %d\n",s
,isPalindrome
(s
)); return 0;
}
IyBpbmNsdWRlIDxzdGRpby5oPgoKaW50IGlzUGFsaW5kcm9tZShjaGFyIHNbXSl7CgkvL+mWouaVsOOBruS4reOBoOOBkeOCkuabuOOBjeaPm+OBiOOBpuOBj+OBoOOBleOBhAoJLy/lm57mlofjgavjgarjgaPjgabjgYTjgovjgajjgY3vvJHjgpLov5TjgZkKCS8v5Zue5paH44Gr44Gq44Gj44Gm44GE44Gq44GE44Go44GN77yQ44KS6L+U44GZCglpbnQgYW5zPTE7CglpbnQgY291bnQ9MDsKCQoJCgl3aGlsZShzW2NvdW50XSAhPSAnXDAnKSAKCQljb3VudCsrOwoJCQoJaW50IHQ9Y291bnQtMTsKCWZvcihpbnQgaT0wOyBpPGNvdW50LzI7IGkrKyl7CgkJaWYoc1tpXSE9c1t0LS1dKSAKCQkJcmV0dXJuIDA7Cgl9CglyZXR1cm4gMTsKfQoKLy/jg6HjgqTjg7PplqLmlbDjga/mm7jjgY3mj5vjgYjjgarjgY/jgabjgojjgYTjgafjgZkKaW50IG1haW4oKXsKICAgIGNoYXIgc1sxMDBdOwogICAgc2NhbmYoIiVzIixzKTsKICAgIHByaW50ZigiJXMgLT4gJWRcbiIscyxpc1BhbGluZHJvbWUocykpOwogICAgcmV0dXJuIDA7Cn0K