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