杭电acm1062Text Reverse
来源:互联网 发布:淘宝出售虚拟物品 编辑:程序博客网 时间:2024/06/07 11:52
Text Reverse
Time Limit : 2000/1000ms (Java/Other) Memory Limit : 65536/32768K (Java/Other)
Total Submission(s) : 10 Accepted Submission(s) : 3
Font: Times New Roman | Verdana | Georgia
Font Size: ← →
Problem Description
Ignatius likes to write words in reverse way. Given a single line of text which is written by Ignatius, you should reverse all the words and then output them.
Input
The input contains several test cases. The first line of the input is a single integer T which is the number of test cases. T test cases follow.
Each test case contains a single line with several words. There will be at most 1000 characters in a line.
Each test case contains a single line with several words. There will be at most 1000 characters in a line.
Output
For each test case, you should output the text which is processed.
Sample Input
3olleh !dlrowm'I morf .udhI ekil .mca
Sample Output
hello world!I'm from hdu.I like acm.
Hint
Remember to use getchar() to read '\n' after the interger T, then you may use gets() to read a line and process it.
Author
阅读全文
0 0
- 杭电acm1062Text Reverse
- 杭电acmText Reverse
- 杭电1062-Text Reverse
- 杭电1062 Text Reverse
- 【杭电】[1062]Text Reverse
- 杭电OJ1062 Text Reverse
- 杭电OJ1062-Text Reverse
- 杭电acm1062 Text Reverse
- Text Reverse(杭电oj1062)
- 杭电 HDU 1062 Text Reverse
- 杭电 HDU 1266 Reverse Number
- 杭电ACM 1062: Text Reverse
- 杭电OJ-1062_Text Reverse
- 杭电 hdu 1062 Text Reverse
- 杭电1062 之 Text Reverse
- 杭电ACM 1062: Text Reverse
- 杭电ACM1321——Reverse Text~~逆序输出字符串
- 杭电1062(Text Reverse)字符串翻转问题
- mybatis实战教程
- Docker应用示例2--使用Docker创建简单集群服务
- VBA 等待1S 处理方法
- Codeforces 200B
- 使用FusionChartsFree整合项目
- 杭电acm1062Text Reverse
- TP5的URL大小写问题
- Oracle 11g RAC 开启、修改归档方法
- CarbonData源码阅读(3)
- 加密文件
- grep及正则表达式
- mysql外链、索引、约束
- 线程同步之Semaphore
- linux常用知识点