shunfurh
编程介的小学生
2017-11-26 07:18

circumgyrate the string

10
  • string
  • each

Problem Description
Give you a string, just circumgyrate. The number N means you just circumgyrate the string N times, and each time you circumgyrate the string for 45 degree anticlockwise.

Input
In each case there is string and a integer N. And the length of the string is always odd, so the center of the string will not be changed, and the string is always horizontal at the beginning. The length of the string will not exceed 80, so we can see the complete result on the screen.

Output
For each case, print the circumgrated string.

Sample Input
asdfass 7

Sample Output
a
s
d
f
a
s
s

  • 点赞
  • 回答
  • 收藏
  • 复制链接分享

2条回答

为你推荐