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