#include <iostream>
#include <cstdio>
#include <algorithm>
using namespace std;
int main()
{
string s,s1;
int Case=1;
while(cin>>s&&s!="STOP")
{
s1=s;
reverse(s.begin(),s.end());
if(s1==s)
{
printf("#%d: YES\n",Case++);
}
else
printf("#%d: NO\n",Case++);
}
return 0;
}
杭电2163
最新推荐文章于 2019-03-10 14:24:24 发布