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