CT23415

The charms Word Reversal Puzzle

EasyL3 · Syntax SurferAcceptance: 0.0%XP: 20

The bookkeeper Envoy has been asked to chart the migration season. On the desk lies a long table of charms readings. 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| <= 1269; s contains lowercase English letters.

Example 1:

Input: s r
Output: r s

Example 2:

Input: xsq jzymi qby binxzmaih e hn zrrenkgpncsd
Output: zrrenkgpncsd hn e binxzmaih qby jzymi xsq

Example 3:

Input: crjmawdw wrr
Output: wrr crjmawdw

Constraints:

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

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