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