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