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