CT22504

The Shimmering ribbons of Lata

EasyL3 · Syntax SurferAcceptance: 0.0%XP: 20

Deep in the crystal caves of Luminar, Lata studies rows of ribbons entries. One clean number will settle the guild's oldest argument. 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| <= 1603; s contains lowercase English letters.

Example 1:

Input: mi toztwof
Output: toztwof mi

Example 2:

Input: msqkqduhm r cumrtirv b
Output: b cumrtirv r msqkqduhm

Example 3:

Input: urxjfce sddluasbnugu xwtxgcgfdtuu gl bsyjrkqsfrio avoqyspdp p k xdrqg
Output: xdrqg k p avoqyspdp bsyjrkqsfrio gl xwtxgcgfdtuu sddluasbnugu urxjfce

Constraints:

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

Loading...
Test Cases:No test cases
No test cases available.
The Shimmering ribbons of Lata - EASY Coding Problem | CodeTikki