-->
当前位置:首页 > 题库

PROGRAMMING:Ancient style typesetting

Luz5年前 (2021-05-10)题库476
In ancient China, writing was arranged vertically from right to left. This topic asks you to write the procedure, arranges a paragraph of text according to the ancient style.
###Input format:
Enter a positive integer $$n $$($< 100 $$) in the first line, which is the number of characters in each column. The second line gives a non empty string no more than 1000 in length, ending with carriage return.
###Output format:
Typeset the given string in archaic format, $$n $$characters per column (except that the last column may be less than $$n $).
###Input example:
```in
four
This is a test case
```
###Output example:
```out
asa T
st ih
e tsi
ce s
```






answer:If there is no answer, please comment