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