Run ID:153229

提交时间:2026-05-10 14:46:50

rows,cols = input().split() rows,cols = int(rows),int(cols) a = [] for i in range(rows): tmp = input().split() a .append(tmp) b = [] t = 0 for col in range(cols): tmp =[] for row in range(rows-1,-1,-1): x = t//rows y = t% rows tmp.append( a[row][col] ) b .append(tmp) for row in b: for item in row: print(item,end=" ") print()