Sign in $ create-account
~/problems ~/discussion ~/contests ~/submission
← ~/problems
P2010

Palindrome Check

Easy
// Description
Determine whether the given lowercase string is a palindrome.
// Input
A single line containing a string of lowercase letters (length <= 1000).
// Output
Print "YES" if the string is a palindrome, otherwise "NO".
// Hint
Compare the string with its reverse.
// Samples
Sample Input
level
Sample Output
YES
// Problem Info
DifficultyEasy
Acceptance60%
Time Limit1000 ms
Memory Limit65536 KB
Accepted6
Strings
// Discussion

No Discussion