# include <stdio.h>
int isPalindrome(char s[]){
int i=0, j;
for(j=0;s[j+1]!='\0';j++);
while(i<=j){
if(s[i++]!=s[j--]) return 0;
}
return 1;
}
int main(){
char s[100];
printf("%s -> %d\n",s
,isPalindrome
(s
)); return 0;
}
/*二次元malloc 7XLBnd
線形探索https://i...content-available-to-author-only...e.com/8XKMFi
挿入ソートhttps://i...content-available-to-author-only...e.com/0GiVoG
ソート済み線形リスト M1ddnV
文字数count gYvNOl
Copy dSxAE8
Compare 236Kt1
Connect fmvJAm
大文字sTKHkh
優先度付きキュー IHPDo9
https://i...content-available-to-author-only...e.com/X8gtNS
*/
IyBpbmNsdWRlIDxzdGRpby5oPgoKaW50IGlzUGFsaW5kcm9tZShjaGFyIHNbXSl7CiAgICBpbnQgaT0wLCBqOwogICAgZm9yKGo9MDtzW2orMV0hPSdcMCc7aisrKTsKICAgIHdoaWxlKGk8PWopewogICAgICAgIGlmKHNbaSsrXSE9c1tqLS1dKSByZXR1cm4gMDsKICAgIH0KICAgIHJldHVybiAxOwp9CgppbnQgbWFpbigpewogICAgY2hhciBzWzEwMF07CiAgICBzY2FuZigiJXMiLHMpOwogICAgcHJpbnRmKCIlcyAtPiAlZFxuIixzLGlzUGFsaW5kcm9tZShzKSk7CiAgICByZXR1cm4gMDsKfQoKLyrkuozmrKHlhYNtYWxsb2MgN1hMQm5kCiDnt5rlvaLmjqLntKJodHRwczovL2kuLi5jb250ZW50LWF2YWlsYWJsZS10by1hdXRob3Itb25seS4uLmUuY29tLzhYS01GaQoKCuOAgOaMv+WFpeOCveODvOODiGh0dHBzOi8vaS4uLmNvbnRlbnQtYXZhaWxhYmxlLXRvLWF1dGhvci1vbmx5Li4uZS5jb20vMEdpVm9HCuOAgOOCveODvOODiOa4iOOBv+e3muW9ouODquOCueODiOOAgE0xZGRuVgoK5paH5a2X5pWwY291bnQgZ1l2Tk9sCgogICAgICAgICAgQ29weSAgZFN4QUU4CiAgICAgICAgICBDb21wYXJlIDIzNkt0MQogICAgICAgICAgQ29ubmVjdCBmbXZKQW0KICAgICAgICAgIOWkp+aWh+Wtl3NUS0hraArlhKrlhYjluqbku5jjgY3jgq3jg6Xjg7zjgIBJSFBEbzkKCmh0dHBzOi8vaS4uLmNvbnRlbnQtYXZhaWxhYmxlLXRvLWF1dGhvci1vbmx5Li4uZS5jb20vWDhndE5TCgoKKi8=