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