CT27046

Vani's Pearl banners

EasyL3 · Syntax SurferAcceptance: 0.0%XP: 20

Caravans arrive at the rookery of Crowhaven with crates of banners, and Vani the accountant must account for every last one. 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| <= 924; s contains lowercase English letters.

Example 1:

Input: jjuwlxkryist aafh wegow cmbfh peh pahi bfhjj wyee fumuet
Output: fumuet wyee bfhjj pahi peh cmbfh wegow aafh jjuwlxkryist

Example 2:

Input: temvsj rvkycougs ziybjkshg umku vq lrgetdia zvvolbtrmwwn fpdoyqhbml us osz
Output: osz us fpdoyqhbml zvvolbtrmwwn lrgetdia vq umku ziybjkshg rvkycougs temvsj

Example 3:

Input: dixreyivefc nhy z fkljqreoiznd puv efe adhzz goekyhgxwnsr zfat soyuxi
Output: soyuxi zfat goekyhgxwnsr adhzz efe puv fkljqreoiznd z nhy dixreyivefc

Constraints:

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

Loading...
Test Cases:No test cases
No test cases available.
Vani's Pearl banners - EASY Coding Problem | CodeTikki