#include<iostream>
#include<stdio.h>
#include<string.h>
using namespace std;
int main()
{
int n; char str[50];
while(scanf("%d",&n)!=EOF)
{
getchar();
while(n--)
{
gets(str);
int i,j;
for(i=0,j=strlen(str)-1;i<j;i++,j--)
{
if(str[i]==str[j])
{
continue;
}
else
{
break;
}
}
if(i>=j)
{
cout<<"yes"<<endl;
}
else
{
cout<<"no"<<endl;
}
}
}
return 0;
}
hduoj_2029
最新推荐文章于 2023-03-16 17:27:43 发布