输入一个整数n<10,
然后是一个n阶的字符方阵
按照主对角线,将对应的字母进行换位,然后输出。
两个字符间空一格。
3 a b c d e f g h i
a d g b e h c f i
Titan2019