CT25173

The Word Reversal of Scrollkeep

EasyL3 · Syntax SurferAcceptance: 0.0%XP: 20

In the archive halls of Scrollkeep, Navigator the reckoner keeps careful count of the labels. Prepare the guildmaster's brief, every figure matters. 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| <= 1928; s contains lowercase English letters.

Example 1:

Input: mhyftgna b kpbxiho
Output: kpbxiho b mhyftgna

Example 2:

Input: wtyp lcarf wzbbmpn
Output: wzbbmpn lcarf wtyp

Example 3:

Input: yvwsufyxkctq tkbrixqptwqc i f wekngrcke owfgvwaab lj
Output: lj owfgvwaab wekngrcke f i tkbrixqptwqc yvwsufyxkctq

Constraints:

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

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