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