題號:490 簡單 Base CPE必考一星題 CPE歷屆試題

Online Judge - 490 - Rotating Sentences

來源代碼:UVa 時間限制:3 s

題目說明

In “Rotating Sentences,” you are asked to rotate a series of input sentences 90 degrees clockwise. So instead of displaying the input sentences from left to right and top to bottom, your program will display them from top to bottom and right to left.

輸入說明

As input to your program, you will be given a maximum of 100 sentences, each not exceeding 100 characters long. Legal characters include: newline, space, any punctuation characters, digits, and lower case or upper case English letters. (NOTE: Tabs are not legal characters.)

輸出說明

The output of the program should have the last sentence printed out vertically in the leftmost column; the first sentence of the input would subsequently end up at the rightmost column.

輸入輸出範例

範例輸入
Rene Decartes once said,
"I think, therefore I am."
範例輸出
"R
Ie
 n
te
h 
iD
ne
kc
,a
 r
tt
he
es
r 
eo
fn
oc
re
e 
 s
Ia
 i
ad
m,
. 
" 

討論

登入後即可加入討論。 登入

目前還沒有討論文章。

提交解答

登入後即可提交解答。

登入

最近提交

Yogurt
C/C++ · 2026-07-30 22:12
AC