4118: 【例70.3】 单词翻转
          Memory Limit:64 MB
          Time Limit:1.000 S
         
      
      
        
          Judge Style:Text Compare
          Creator:
      
      
          Submit:45
          Solved:19
      
Description
输入一个句子(一行),将句子中的每一个单词翻转后输出。
    Input
只有一行,为一个字符串,不超过 $500$个字符。单词之间以空格隔开。注意字符串开头和结尾可能有空格。
      Output
翻转每一个单词后的字符串,单词之间的空格需与原文一致。
        Sample Input Copy
hello worldSample Output Copy
olleh dlrow