文章
5
粉丝
127
获赞
10
访问
37.0k
#include<iostream>
#include<cstring>
using namespace std;
string s;
int main()
{
while (cin >> s)
{
int len = s.length() - 1;
int i = 0;
int j = len;
while (s[i] == s[j] && i <= len/2)
{
i++;
j--;
}
if (i > len / 2)
cout << "Yes" << endl;
else
cout << "No" << endl;
}
return 0;
}
登录后发布评论
暂无评论,来抢沙发