CT26357

The Word Reversal of Echo Dunes

EasyL3 · Syntax SurferAcceptance: 0.0%XP: 20

Morning light hits the singing sands of Echo Dunes as Rowena unrolls the day's manifest of verses. The tally will decide the next shipment. 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| <= 1689; s contains lowercase English letters.

Example 1:

Input: ezxttvcbs lfuyrcmlnsxe rfeezyuki k eh
Output: eh k rfeezyuki lfuyrcmlnsxe ezxttvcbs

Example 2:

Input: kym suysmdvtx fguebi khqux hehl njwes apzlylttvrq ksjxag icniknmixe uijn uwg gbeih xvkofheph
Output: xvkofheph gbeih uwg uijn icniknmixe ksjxag apzlylttvrq njwes hehl khqux fguebi suysmdvtx kym

Example 3:

Input: qftuuiounm dfeszmjox mbwqrcvf u ixcwqbzqj xiyqfgwficdu omkwynxr
Output: omkwynxr xiyqfgwficdu ixcwqbzqj u mbwqrcvf dfeszmjox qftuuiounm

Constraints:

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

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