#3294. 颠倒的句子

颠倒的句子

说明

读入一个字符串,按单词将该字符串逆序,比如给定"This is a sentence",则输出是"sentence a is This",为了简化问题,字符串中不包含标点符号。
This is a sentence
sentence a is This

来源

ACM入门题-字符串处理