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