Palindromic String
Practice
4 (2540 votes)
Easy
Problem
77% Success 360969 Attempts 10 Points 1s Time Limit 256MB Memory 1024 KB Max Code
You have been given a String S. You need to find and print whether this string is a palindrome or not. If yes, print "YES" (without quotes), else print "NO" (without quotes).
Input Format
The first and only line of input contains the String S. The String shall consist of lowercase English alphabets only.
Output Format
Print the required answer on a single line.
Constraints \( 1 \le |S| \le 100 \)
Note
String S consists of lowercase English Alphabets only.
Submissions
Please login to view your submissions
Similar Problems
Points:10
1585 votes
Tags:
Easy
Points:10
1864 votes
Tags:
Ad-HocApprovedBasic ProgrammingEasyImplementationOpen
Points:10
2384 votes
Tags:
Easy
Editorial