# include <stdio.h>
int isPalindrome(char s[]){
int n;
char r[100];
for(int i=0;s[i]!='\0';i++){
n=i+1;
}
for(int i=0;i<n;i++){
r[i]=s[n-1-i];
}
r[n]='\0';
int hantei=1;
for(int i=0; i<n-1; i++){
if(s[i] != r[i]) {hantei--;}
}
return hantei;
}
//メイン関数は書き換えなくてよいです
int main(){
char s[100];
printf("%s -> %d\n",s
,isPalindrome
(s
)); return 0;
}
IyBpbmNsdWRlIDxzdGRpby5oPgoKaW50IGlzUGFsaW5kcm9tZShjaGFyIHNbXSl7CmludCBuOwpjaGFyIHJbMTAwXTsKZm9yKGludCBpPTA7c1tpXSE9J1wwJztpKyspewpuPWkrMTsKfQpwcmludGYoIm49JWRcbiIsbik7CmZvcihpbnQgaT0wO2k8bjtpKyspewpyW2ldPXNbbi0xLWldOwp9CnJbbl09J1wwJzsKaW50IGhhbnRlaT0xOwogZm9yKGludCBpPTA7IGk8bi0xOyBpKyspewogICAgICAgIGlmKHNbaV0gIT0gcltpXSkge2hhbnRlaS0tO30KfSAKcmV0dXJuIGhhbnRlaTsKfQovL+ODoeOCpOODs+mWouaVsOOBr+abuOOBjeaPm+OBiOOBquOBj+OBpuOCiOOBhOOBp+OBmQppbnQgbWFpbigpewogICAgY2hhciBzWzEwMF07CiAgICBzY2FuZigiJXMiLHMpOwogICAgcHJpbnRmKCIlcyAtPiAlZFxuIixzLGlzUGFsaW5kcm9tZShzKSk7CiAgICByZXR1cm4gMDsKfQo=