CT23038

Dante and the Word Reversal

EasyL3 · Syntax SurferAcceptance: 0.0%XP: 20

The harbor bell rings at the crane marshes of Stillwater; Dante weighs the day's ribbons manifests and starts the calculations. Task: Read a line of space-separated words and print the words in reverse order. Input format: One line with words separated by single spaces. Output format: Print the words in reverse order, single-spaced. Constraints: 1 <= |s| <= 775; s contains lowercase English letters.

Example 1:

Input: tktypqwbjla rc lcju pmdbvorpj nktqgn sadru davjhlvo p wbdivwcuw
Output: wbdivwcuw p davjhlvo sadru nktqgn pmdbvorpj lcju rc tktypqwbjla

Example 2:

Input: ygnuohqpnylf bslyltceennd z de cqfmltbaehad qtfg snyjl
Output: snyjl qtfg cqfmltbaehad de z bslyltceennd ygnuohqpnylf

Example 3:

Input: zvlw ztogsq ajkwrbbmqliy icn tx cysf i
Output: i cysf tx icn ajkwrbbmqliy ztogsq zvlw

Constraints:

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

Loading...
Test Cases:No test cases
No test cases available.
Dante and the Word Reversal - EASY Coding Problem | CodeTikki