Toggle navigation
CGOJ
F.A.Qs
ProblemSet
Source/Category
Status
Ranklist
Contest
Login
Language
中文
ئۇيغۇرچە
English
فارسی
ไทย
한국어
Problem B: 图像旋转
Problem B: 图像旋转
[Creator :
]
Time Limit :
1.000
sec
Memory Limit :
128 MiB
Submit
ProblemList
Solved: 13
Submit Num: 15
Statistics
ShowOff!
Description
给定一个整数
lns="http://www.w3.org/1998/Math/MathML">
n
n
,再给定
lns="http://www.w3.org/1998/Math/MathML">
n
×
n
n
×
n
个可见字符。请将这些字符顺时针旋转
lns="http://www.w3.org/1998/Math/MathML">
90
9
0
度后输出。
Input
第一行:单个整数
lns="http://www.w3.org/1998/Math/MathML">
n
n
第二行到第
lns="http://www.w3.org/1998/Math/MathML">
n
+
1
n
+
1
行:第
lns="http://www.w3.org/1998/Math/MathML">
i
+
1
i
+
1
行有
lns="http://www.w3.org/1998/Math/MathML">
n
n
个 字符表示
lns="http://www.w3.org/1998/Math/MathML">
c
i
,
1
c
i
,
1
到
lns="http://www.w3.org/1998/Math/MathML">
c
i
,
n
c
i
,
n
1≤n≤20
Output
n
×
n
个字符:为输入图形顺时针旋转
lns="http://www.w3.org/1998/Math/MathML">
90
9
0
度后的结果。
Sample Input
Copy
3 abc efg hij
Sample Output
Copy
hea ifb jgc