CT25502

Last inscriptions of Tara

EasyL3 · Syntax SurferAcceptance: 0.0%XP: 20

Legend says the vault under the quartz ridge of Glimmerfell opens only for a perfect tally of inscriptions. Tara means to find out. 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| <= 514; s contains lowercase English letters.

Example 1:

Input: uaxauizrdwddjpcoojauztebolubqezvplxxnkdiwgtyjcltuqsrmeieoyfseljmbodvpmoytblyuspmbocgrqbxobnkamgsbbumzprnikyadyefzzymoosepljkujfxowfgfzyqeddzffwtijjimrarjyjlzyjgsyljoxdqdidgogumcspzxsgpstqublllvhjmirgjgdxiokqpjxkaisjkfmmkryhoxefpriyhguqlknvggsmbsfnccmmaavnebyiocxciwmltbomnbyttuewodjqejyegqkumuoqosnzpoanhghwmsuaxnosueekvfuyrlmkbjkfoskkcelf
Output: NO

Example 2:

Input: rqqnaxsdylzsrdunpddpnudrszlydsxanqqr
Output: YES

Example 3:

Input: ydogndicyfsjxxobitghdkocbgqdgvjjtulhcvfmdkipixcanyjgtffehdcoiiocdhefftgjynacxipikdmfvchlutjjvgdqgbcokdhgtiboxxjsfycidngody
Output: YES

Constraints:

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

Loading...
Test Cases:No test cases
No test cases available.
Last inscriptions of Tara - EASY Coding Problem | CodeTikki