#include <iostream>
#include <string>
#include <vector>
using namespace std;
bool judge(string str)
{
string s(str.rbegin(),str.rend());
return str==s;
}
int main()
{
vector<bool> bvec;
string str;
while(cin>>str)
{
if(str=="END")
break;
bvec.push_back(judge(str));
}
vector<bool>::const_iterator iter = bvec.begin();
while(iter != bvec.end())
{
if(*iter++)
cout<<"YES"<<endl;
else
cout<<"NO"<<endl;
}
return 0;
}
2655
最新推荐文章于 2019-09-15 09:03:38 发布