CT1729

Quartermaster's Tempest Ledger

EasyL2 · Byte BanditAcceptance: 0.0%XP: 10

The harbor bell rings at the copper works of Verdigris; Quartermaster weighs the day's charms manifests and starts the calculations. 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| <= 139; s contains lowercase English letters.

Example 1:

Input: gjylwahadrgfenmzuqjpupvmtanxsaypkgtjeelmraxzzrmbeeglsfcvtwkautyprtpbilj
Output: NO

Example 2:

Input: sthsoefrxfzjbpkfmnyxmnrhicikjbcnwwyu
Output: NO

Example 3:

Input: yviymrulozkbyeakjlagobbzqctxfcxjcvlmdcgngxfahzogssggalftqlolqecsioisceqlolqtflaggssgozhafxgngcdmlvcjxcfxtcqzbbogaljkaeybkzolurmyivy
Output: YES

Constraints:

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

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