CT1353

The Mirror Check Beneath Greyfen

EasyL2 · Byte BanditAcceptance: 0.0%XP: 10

Hugo runs the ferry office at the foggy moor of Greyfen. Today the books show a list of banners, and the numbers must be worked out before sundown. Task: Print YES if s reads the same forwards and backwards, otherwise NO. Input format: One line with a single lowercase string s. Output format: Print YES or NO. Constraints: 1 <= |s| <= 60; s contains lowercase English letters.

Example 1:

Input: gmaghwzevqvrpioxcpuvibisnqqnsibivupcxoiprvqvezwhgamg
Output: YES

Example 2:

Input: egqgshruptqpipmaampipqtpurhsgqge
Output: YES

Example 3:

Input: ejpywcfezwswwkyanekapsbqgsucymzhzqegpqsoojzamodrhv
Output: NO

Constraints:

1 <= |s| <= 60; s contains lowercase English letters.

Loading...
Test Cases:No test cases
No test cases available.