#include<bits/stdc++.h>
using namespace std;
int main()
{
string x,y;
getline(cin,x);
y=x;
reverse(y.begin(),y.end());
if(x==y){
cout<<"YES";
}
else
{
cout<<"NO";
}
return 0;
}
c++判断回文串
最新推荐文章于 2024-05-09 21:35:25 发布