📄 problem 1151.htm
字号:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<!-- saved from url=(0047)http://acm.zju.edu.cn/show_problem.php?pid=1151 -->
<HTML><HEAD><TITLE>Problem 1151</TITLE>
<META http-equiv=Content-Type content="text/html; charset=gb2312">
<META content="MSHTML 6.00.2900.3132" name=GENERATOR></HEAD>
<BODY>
<CENTER><IMG src="Problem 1151.files/logo.gif" align=center></IMG></CENTER>
<HR>
<CENTER><FONT color=blue size=+2>Word Reversal</FONT></CENTER>
<HR>
<CENTER><FONT color=green>Time limit:</FONT> 1 Seconds <FONT
color=green>Memory limit: </FONT>32768K </FONT><BR><FONT
color=green>Total Submit:</FONT> 10269 <FONT color=green>Accepted
Submit:</FONT> 2235 </CENTER>
<HR>
<P>For each list of words, output a line with each word reversed without
changing the order of the words.</P>
<P><BR><B>This problem contains multiple test cases!</B></P>
<P>The first line of a multiple input is an integer N, then a blank line
followed by N input blocks. Each input block is in the format indicated in the
problem description. There is a blank line between input blocks.</P>
<P>The output format consists of N output blocks. There is a blank line between
output blocks.</P>
<P><BR><B>Input</B></P>
<P>You will be given a number of test cases. The first line contains a positive
integer indicating the number of cases to follow. Each case is given on a line
containing a list of words separated by one space, and each word contains only
uppercase and lowercase letters.</P>
<P><BR><B>Output</B></P>
<P>For each test case, print the output on one line.</P>
<P><BR><B>Sample Input</B></P>
<P>1</P>
<P>3<BR>I am happy today<BR>To be or not to be<BR>I want to win the practice
contest</P>
<P><BR><B>Sample Output</B></P>
<P>I ma yppah yadot<BR>oT eb ro ton ot eb<BR>I tnaw ot niw eht ecitcarp
tsetnoc<BR></P>
<HR>
<FONT color=green size=+1>Problem Source: </FONT><I>East Central North America
1999, Practice</I>
<HR>
<CENTER><A href="http://acm.zju.edu.cn/submit.php?pid=1151">Submit</A>
<A href="http://acm.zju.edu.cn/list_problem.php?vol=2">Back</A>
<A
href="http://acm.zju.edu.cn/problem_status.php?pid=1151">Status</A> </CENTER>
<HR>
<CENTER>
<TABLE width="100%" border=0>
<TBODY>
<TR>
<TD align=right width="65%"><A href="http://acm.zju.edu.cn/"><FONT
color=red>Zhejiang University Online Judge</FONT></A> <A
href="http://acm.zju.edu.cn/"><FONT color=red>V1.0</FONT></A></TD>
<TD align=right width="35%"><A href="http://www.zzhang.cn/"><FONT
color=#ffffff
size=-3>Book</FONT></A></TD></TR></TBODY></TABLE></CENTER></BODY></HTML>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -