CT23380

Gita and the Word Reversal

EasyL3 · Syntax SurferAcceptance: 0.0%XP: 20

The council of the forest village of Briarthorn pays by the answer, and Gita intends to earn it. First: the full register of charms. 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| <= 972; s contains lowercase English letters.

Example 1:

Input: rwuisy iuvgwhplzked tydvxd xehh hjhxhd ayhbvwmujyr wucdghwhcxd cdd bwtjqf asyts miqjp nasfbisold bvidgrrnyxcv tqd lhnofsssmr
Output: lhnofsssmr tqd bvidgrrnyxcv nasfbisold miqjp asyts bwtjqf cdd wucdghwhcxd ayhbvwmujyr hjhxhd xehh tydvxd iuvgwhplzked rwuisy

Example 2:

Input: irzrfuxazh hwbniqcoy gqrlf yfubiaksuwgx vndcmzv knguysin hq
Output: hq knguysin vndcmzv yfubiaksuwgx gqrlf hwbniqcoy irzrfuxazh

Example 3:

Input: ucdfv lh ig wamjhn ewvrp gcuwr
Output: gcuwr ewvrp wamjhn ig lh ucdfv

Constraints:

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

Loading...
Test Cases:No test cases
No test cases available.
Gita and the Word Reversal - EASY Coding Problem | CodeTikki