# include <stdio.h>
int myStrlen(char s[]){
int i;
for(i=0;s[i]!='\0';i++);
return i;
}
int isPalindrome(char s[]){
int n=myStrlen(s);
char t[n];
for(int c=0;c<n;c++){
t[n-1-c]=s[c];
}
for(int c=0;s[c]==t[c];c++){
if(s[c]=='\0') return 1;
}
return 0;
}
//メイン関数は書き換えなくてよいです
int main(){
char s[100];
printf("%s -> %d\n",s
,isPalindrome
(s
)); return 0;
}
IyBpbmNsdWRlIDxzdGRpby5oPgppbnQgbXlTdHJsZW4oY2hhciBzW10pewoJaW50IGk7Cglmb3IoaT0wO3NbaV0hPSdcMCc7aSsrKTsKCXJldHVybiBpOwp9CmludCBpc1BhbGluZHJvbWUoY2hhciBzW10pewoJaW50IG49bXlTdHJsZW4ocyk7CgljaGFyIHRbbl07Cglmb3IoaW50IGM9MDtjPG47YysrKXsKCQl0W24tMS1jXT1zW2NdOwoJfQoJCglmb3IoaW50IGM9MDtzW2NdPT10W2NdO2MrKyl7CgkJaWYoc1tjXT09J1wwJykgcmV0dXJuIDE7Cgl9CglyZXR1cm4gMDsKfQoKCi8v44Oh44Kk44Oz6Zai5pWw44Gv5pu444GN5o+b44GI44Gq44GP44Gm44KI44GE44Gn44GZCmludCBtYWluKCl7CiAgICBjaGFyIHNbMTAwXTsKICAgIHNjYW5mKCIlcyIscyk7CiAgICBwcmludGYoIiVzIC0+ICVkXG4iLHMsaXNQYWxpbmRyb21lKHMpKTsKICAgIHJldHVybiAwOwp9Cg==