CT22741

Kate and the Granite inscriptions

EasyL3 · Syntax SurferAcceptance: 0.0%XP: 20

At the crystal caves of Luminar, Kate records each inscriptions 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| <= 1130; s contains lowercase English letters.

Example 1:

Input: ibslghsoxb qqpsqqd lcn ewefulpintf ez idinysqlzfyy woyruhanl ovzq zvhbuaudugpc ndk fw cxxlhpadkvp fznktvwhcn ninlse nzabvlitpwlf
Output: nzabvlitpwlf ninlse fznktvwhcn cxxlhpadkvp fw ndk zvhbuaudugpc ovzq woyruhanl idinysqlzfyy ez ewefulpintf lcn qqpsqqd ibslghsoxb

Example 2:

Input: rtyoijjosk zemnrmmhy mlrslmnbdcn avf tjjxqkgxc e szg idsoow
Output: idsoow szg e tjjxqkgxc avf mlrslmnbdcn zemnrmmhy rtyoijjosk

Example 3:

Input: egerlc rw obp hoxhdl mabngfqxz kkiol lymj
Output: lymj kkiol mabngfqxz hoxhdl obp rw egerlc

Constraints:

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

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