CT23090

Diya's charms Word Reversal

EasyL3 · Syntax SurferAcceptance: 0.0%XP: 20

It is audit day at the fen lights of Will-o-Wisp. Diya spreads the charms records across the table and picks up a sharp pencil. 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| <= 1973; s contains lowercase English letters.

Example 1:

Input: szxurdicja xauqqoqlns jnbd
Output: jnbd xauqqoqlns szxurdicja

Example 2:

Input: xsjdoie dgdkblgbwink aff ouudgonoohpb zpwomsgfglc ixbikokrp wrfwlqti jrqypq myzzbkvmtxf xwxrawdlqlxu hahc urnrkqycr wcbezmqsf gw jynsmcdvvpk
Output: jynsmcdvvpk gw wcbezmqsf urnrkqycr hahc xwxrawdlqlxu myzzbkvmtxf jrqypq wrfwlqti ixbikokrp zpwomsgfglc ouudgonoohpb aff dgdkblgbwink xsjdoie

Example 3:

Input: bwspgou bpinvrxuin bgzaccskgkpc grbrrqugwv bdctl zkoqhfkw uozbjw e l jsxfsmo rw qzpos rb mjrr
Output: mjrr rb qzpos rw jsxfsmo l e uozbjw zkoqhfkw bdctl grbrrqugwv bgzaccskgkpc bpinvrxuin bwspgou

Constraints:

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

Loading...
Test Cases:No test cases
No test cases available.
Diya's charms Word Reversal - EASY Coding Problem | CodeTikki