Toggle navigation
拓智机器人OJ
F.A.Qs
Web Board
ProblemSet
Source/Category
Status
Ranklist
Contest
Login
Problem1146--判断字符串是否为回文
1146: 判断字符串是否为回文
Time Limit:
1 Sec
Memory Limit:
128 MB
Submit:
3
Solved:
3
[
Submit
] [
Status
] [
Web Board
] [Creator:
]
Description
输入一个字符串,输出该字符串是否回文。回文是指顺读和倒读都一样的字符串。
Input
输入为一行字符串(字符串中没有空白字符,字符串长度不超过100)。
Output
如果字符串是回文,输出yes;否则,输出no。
Sample Input
Copy
abcdedcba
Sample Output
Copy
yes
Source/Category
字符数组