CT1606

Botanist's riddles Reckoning

EasyL2 · Byte BanditAcceptance: 0.0%XP: 10

At the granite steps of Stonehallow, Botanist records each riddles in a worn leather ledger. The guild wants answers, not guesses. 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| <= 119; s contains lowercase English letters.

Example 1:

Input: sw qkzuzjkn ngyzpyk iwfvrvnnotsa
Output: iwfvrvnnotsa ngyzpyk qkzuzjkn sw

Example 2:

Input: unifegqhd yvmtntdpoi tkfia fq hqibsde jpgqt
Output: jpgqt hqibsde fq tkfia yvmtntdpoi unifegqhd

Example 3:

Input: txwzvzoaoa gd w mmxsj na s iahgzavxxsx yggnfpiwcvvh ypykvbdew uoaofwgpgoe imuozqzgdo ukavqpsk aqxotqxbmyh axkg fhofmhjcvj
Output: fhofmhjcvj axkg aqxotqxbmyh ukavqpsk imuozqzgdo uoaofwgpgoe ypykvbdew yggnfpiwcvvh iahgzavxxsx s na mmxsj w gd txwzvzoaoa

Constraints:

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

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