0101少儿编程
Home
ProblemSet
Source/Category
Contest
Status
Ranklist
F.A.Qs
IDE下载
Login
Register
5185: 【70课】【3410】判断字符串是否为回文
Memory Limit:128 MB
Time Limit:1.000 S
Judge Style:Text Compare
Creator:
Submit:58
Solved:15
Submit
Submit Record
Statistics
ShowOff!
Description
输入一个字符串,输出该字符串是否回文。回文是指顺读和倒读都一样的字符串。
Input
输入为一行字符串(字符串中没有空白字符,字符串长度不超过
100
)。
Output
如果字符串是回文,输出"
y
e
s
";否则,输出"
n
o
"。
Sample Input
Copy
abcdedcba
Sample Output
Copy
yes
Source/Category
一本通编程启蒙
字符串
Submit
Submit Record
Statistics
ShowOff!