# include <stdio.h>
int isPalindrome(char s[]){
int i, j;
int count=0;
for(i=0;s[i]!='\0';i++){
count++;
}
for(j=0;s[j]==s[count-j];j++){
if(count<=j) return 0;
} return 1;
//関数の中だけを書き換えてください
//回文になっているとき1を返す
//回文になっていないとき0を返す
}
//メイン関数は書き換えなくてよいです
int main(){
char s[100];
printf("%s -> %d\n",s
,isPalindrome
(s
)); return 0;
}
IyBpbmNsdWRlIDxzdGRpby5oPgoKaW50IGlzUGFsaW5kcm9tZShjaGFyIHNbXSl7CiAgICAgaW50IGksIGo7CiAgICAgaW50IGNvdW50PTA7CiAgICAgZm9yKGk9MDtzW2ldIT0nXDAnO2krKyl7CiAgICAgICAgICBjb3VudCsrOwogICAgIH0KICAgICBmb3Ioaj0wO3Nbal09PXNbY291bnQtal07aisrKXsKICAgICAgICAgIGlmKGNvdW50PD1qKSByZXR1cm4gMDsKICAgICB9IHJldHVybiAxOwoJLy/plqLmlbDjga7kuK3jgaDjgZHjgpLmm7jjgY3mj5vjgYjjgabjgY/jgaDjgZXjgYQKCS8v5Zue5paH44Gr44Gq44Gj44Gm44GE44KL44Go44GN77yR44KS6L+U44GZCgkvL+WbnuaWh+OBq+OBquOBo+OBpuOBhOOBquOBhOOBqOOBje+8kOOCkui/lOOBmQp9CgovL+ODoeOCpOODs+mWouaVsOOBr+abuOOBjeaPm+OBiOOBquOBj+OBpuOCiOOBhOOBp+OBmQppbnQgbWFpbigpewogICAgY2hhciBzWzEwMF07CiAgICBzY2FuZigiJXMiLHMpOwogICAgcHJpbnRmKCIlcyAtPiAlZFxuIixzLGlzUGFsaW5kcm9tZShzKSk7CiAgICByZXR1cm4gMDsKfQo=