Palíndrom
Submit solution
Points:
10
Time limit:
5.0s
Memory limit:
256M
Author:
Problem types
Allowed languages
C#, Go, Java, Python
Donat un String, dir si és un palíndrom.
Input Format
String
Constraints
No hi ha
Output Format
{ true | false }
Test Case 1
Input
a
Output
true
Test Case 2
Input
aa
Output
true
Test Case 3
Input
aba
Output
true
Test Case 4
Input
abba
Output
true
Test Case 5
Input
abcba
Output
true
Test Case 6
Input
abcb
Output
false
Test Case 7
Input
abcdcb
Output
false
Test Case 8
Input
abcdcbaa
Output
false
CC BY-NC-SA 4.0