CT24296

The Word Reversal of the Teal sigils

EasyL3 · Syntax SurferAcceptance: 0.0%XP: 20

Finn runs the ferry office at the old quarter of Brasshaven. Today the books show a list of sigils, and the numbers must be worked out before sundown. 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| <= 1341; s contains lowercase English letters.

Example 1:

Input: wuie xbfmzkbop xraobm rztckmqf dgekmjlvee hdkktponc xaxuanx haejqbxxgk eessjoo
Output: eessjoo haejqbxxgk xaxuanx hdkktponc dgekmjlvee rztckmqf xraobm xbfmzkbop wuie

Example 2:

Input: j hmupex
Output: hmupex j

Example 3:

Input: hwuhq qhu tcclyxmamxxt i bezk aj oezo xcf liml mp nzooys
Output: nzooys mp liml xcf oezo aj bezk i tcclyxmamxxt qhu hwuhq

Constraints:

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

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