a015: 矩陣的翻轉
http://zerojudge.tw/ShowProblem?problemid=a015
- while True:
- try:
- r=input().split()[0]
- matrix=[]
- for _ in range(int(r)):
- matrix.append(input().split())
- transpose=zip(*matrix)
- for row in transpose:
- string=’’
- for element in row:
- string += element + ’ ’
- print(string)
- except:
- break