Set 101Question 18

Shuvo's Palindrome Filter

EasyWritten in CMust finish in 2 seconds

Shuvo is organizing entries at a university club 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

ecje

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.

Shuvo's Palindrome Filter · DIU ContestHub