HomeVolumesContestsSectionsForumsUsersPrintHelpAbout

Sections > Unsorted > problem:


REVERSE ORDER OF WORDS

Section problems

• Find the biggest 2
• Find the biggest 3
• Tower of Happiness
• Going to the Movies
• A to the power of B
• X to the power of Y
• Connected components
• Arithmetic Operators
• REVERSE ORDER OF WORDS
• A Palace with Many Columns
• Nameplates
• Cycle detection
• Cities and roads
• Adjacency matrix to edges list
• Edges list to Adjacency matrix
• Permutations
• Reverse permutation

Feedback

If you notice incorrect translations in Contester, please let author know.

Time limit 2000/4000/4000/4000 ms. Memory limit 65000/65000/65000/65000 Kb.

Title

Description:

 

Write a program that reverses the words in the sentence.

 

Input:

 

Input contains only line of sentence with uppercase letters.

 

Output:

 

Your output should contain only one sentence which is reverse order of the words of the sentence given from input.

 

Sample input:

 

WHAT IS YOUR NAME

 

Sample output:

 

NAME YOUR IS WHAT

 

 

Для отправки решений необходимо выполнить вход.

www.contester.ru