Problem B: 图像旋转

Problem B: 图像旋转

[Creator : ]
Time Limit : 1.000 sec  Memory Limit : 128 MiB

Description

给定一个整数 lns="http://www.w3.org/1998/Math/MathML">n,再给定 lns="http://www.w3.org/1998/Math/MathML">n×n 个可见字符。请将这些字符顺时针旋转 lns="http://www.w3.org/1998/Math/MathML">90 度后输出。

Input

  • 第一行:单个整数 lns="http://www.w3.org/1998/Math/MathML">n
  • 第二行到第 lns="http://www.w3.org/1998/Math/MathML">n+1 行:第 lns="http://www.w3.org/1998/Math/MathML">i+1 行有 lns="http://www.w3.org/1998/Math/MathML">n 个 字符表示 lns="http://www.w3.org/1998/Math/MathML">ci,1 到 lns="http://www.w3.org/1998/Math/MathML">ci,n
1≤n≤20

Output

 个字符:为输入图形顺时针旋转 lns="http://www.w3.org/1998/Math/MathML">90 度后的结果。

Sample Input Copy

3
abc
efg
hij

Sample Output Copy

hea
ifb
jgc