407073: GYM102697 044 Yoda Translator
Memory Limit:256 MB
Time Limit:1 S
Judge Style:Text Compare
Creator:
Submit:0
Solved:0
Description
044. Yoda Translatortime limit per test1 secondmemory limit per test256 megabytesinputstandard inputoutputstandard output
Yoda tends to confuse people with his irregular syntax. Write a program that takes in a string and switches the first half of the words with the second half.
InputA line will contain a string.
OutputFor the input, your program must print that string with the first and second half of the words switched.
ExampleInputreverse this sentence you have toOutput
you have to reverse this sentenceNote
Assume the input will always have an even number of words.