#2293. 颠倒的句子
颠倒的句子
题目描述
读入一个字符串,按单词将该字符串逆序,比如给定"This is a sentence",则输出是"sentence a is This",为了简化问题,字符串中不包含标点符号。
样例
样例 1
输入:
This is a sentence
输出:
sentence a is This
读入一个字符串,按单词将该字符串逆序,比如给定"This is a sentence",则输出是"sentence a is This",为了简化问题,字符串中不包含标点符号。
输入:
This is a sentence
输出:
sentence a is This