Set 101Question 4

Wasif's Palindrome Filter

EasyWritten in CMust finish in 2 seconds

Wasif is organizing entries at a hackathon 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

ahjj

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.

Wasif's Palindrome Filter · DIU ContestHub