#include<iostream>
#include<string>
using namespace std;
int main()
{
int l, r, n;
string line;
bool ans;
while(cin >> n)
{
while(n--)
{
cin >> line;
l = 0, r = line.size() - 1;
ans = true;
while(l < r)
{
if(line[l++] != line[r--])
{
ans = false;
break;
}
}
if(ans)
cout << "yes" << endl;
else
cout << "no" << endl;
}
}
return 0;
}
HDU 2029
最新推荐文章于 2020-12-10 00:02:11 发布