Set 101Question 41

Lamia's Palindrome Filter

EasyWritten in CMust finish in 2 seconds

Lamia is organizing entries at a hospital's records desk and needs to flag which submitted codes are palindromes.

What your program reads

One string S.

What your program prints

"YES" or "NO".

Limits

1 ≤ |S| ≤ 1000

Example input

aadd

Expected output

NO
main.c

Your work is saved in this browser as you type.

Loading editor…
Input for Run

Run tries your code on the input above and shows what it prints. Submit checks your output against every test, including hidden ones.

Shortcut: Ctrl + Enter sends it to the judge.

Lamia's Palindrome Filter · DIU ContestHub