6466: FZ-2.2 判断回文串

Memory Limit:128 MB Time Limit:1.000 S
Judge Style:Text Compare Creator:
Submit:127 Solved:15

Description

回文串”是一个正读和反读都一样的字符串,写一个程序判断读入的字符串是否是“回文串”。

Input

第1行输入一个正整数n,表示测试实例的个数,后面输入n个字符串。

Output

如果是回文串,输出yes,否则输出no。

Sample Input Copy

2
level
abcde

Sample Output Copy

yes
no

HINT

数据范围:

1 <= n <= 105

1 <= s.length <= 103

s内均为小写字母