Set 101Question 38

Tanjil's Palindrome Filter

EasyWritten in CMust finish in 2 seconds

Tanjil 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

gchc

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.

Tanjil's Palindrome Filter · DIU ContestHub