HomeVolumesContestsSectionsForumsUsersPrintHelpAbout

Volumes > Data Structures > problem:


50781 - ReversesreveR

Guest
• Discussion of problem (1)

Volume problems

• 50773 - Balanced Sum Tree
• 50536 - Epoka Furgon Shpk
• 50506 - The Biggest Island
• 50682 - Hotel Durres
• 50777 - Dwarfs Maze
• 50488 - Connecting Wires
• 50472 - Minimum Sum Triangle
• 50842 - Minimum Sum Triangle - DP
• 50781 - ReversesreveR
• 50676 - Cinema Millennium
• 50780 - Hot Potato - Revisited
• 50678 - The Jumping Rabbit
• 50793 - Top M Customers
• 51073 - Campus Tours for High Sch...
• Check-Mate
• Post Office Delivery
• 50993 - Products in store

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.
Question Adapted from Google Code Jam.

ReversesreveR

Question: Write a program that reads a file until the end. And it shows the words in reverse order.

Input specification
You will have a file with different words (alphanumeric or special ASCII characters) in it.

Output specification
Starting from the last word, show all words.

Sample Input I   
champion the red
yellow Galatasaray
Sample Output I   
Galatasaray yellow red the champion


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

www.contester.ru