UVa 490

From Algorithmist
Jump to navigation Jump to search

490 - Rotating Sentences[edit]

Summary[edit]

Straightforward Ad Hoc problem.

Explanation[edit]

Use a 2-dimensional array and print it out the other way

Input[edit]

Rene Decartes once said,
"I think, therefore I am."
1234
123456
12345     
123
12345678
   456789
  3456       
          
       8

Output[edit]

"R
Ie
 n
te
h 
iD
ne
kc
,a
 r
tt
he
es
r
eo
fn
oc
re
e
 s
Ia
 i
ad
m,
.
"
    11111
    22222
  3 33333
  444 444
  555 55
  666  6
   77  
8  88  
   9   
       
       
   
   
   

Solutions[edit]

More help[edit]

  1. Useful help and sample I/O from UVA forum