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