在 线 评 测 系 统
Toggle navigation
HNUAHE-OJ
F.A.Qs
ProblemSet
Source/Category
Status
Ranklist
Contest
Login
Problem A: 回文字符串判断
Problem A: 回文字符串判断
[Creator :
]
Time Limit :
1.000
sec
Memory Limit :
128 MiB
Submit
ProblemList
Solved: 88
Submit Num: 190
Statistics
ShowOff!
Description
输入一个字符串S,判断这个字符串是否是回文字符串,是的话输出1,否则输出0。
Input
输入有多行,每行包含一个字符串。
Output
输出也有多行,每行有一个字符“1”或“0”,若对应的输入为回文字符串,则此行输出1,否则输出0。
Sample Input
Copy
abcba 20111102 abc
Sample Output
Copy
1 1 0