#include<iostream>
#include<cstring>
using namespace std;
int main()
{
char str[100];
int n;
cin>>n;
while(n--)
{
cin>>str;
int i=0,j=strlen(str)-1;
while(i!=j&&str[i]==str[j]&&i<j)
{
++i;
--j;
}
if(i==strlen(str)/2)
cout<<"yes"<<endl;
else
cout<<"no"<<endl;
}
}
tips:好像不是很难,在strlen的用法那里error了一次,原因是我原本给的定义是string。