CT27561

Indu's verses Word Reversal

EasyL3 · Syntax SurferAcceptance: 0.0%XP: 20

Legend says the vault under the fen lights of Will-o-Wisp opens only for a perfect tally of verses. Indu means to find out. 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| <= 1520; s contains lowercase English letters.

Example 1:

Input: v lydpixsvuucs
Output: lydpixsvuucs v

Example 2:

Input: qyudulxocsbe a rnbixasbl eu maozhfuxqfu wkmzbczwwk evjcxqwl wuhxzmmvuqu ulcmb p
Output: p ulcmb wuhxzmmvuqu evjcxqwl wkmzbczwwk maozhfuxqfu eu rnbixasbl a qyudulxocsbe

Example 3:

Input: blb mh qxrrtomn mievt zufigp
Output: zufigp mievt qxrrtomn mh blb

Constraints:

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

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