Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- inp = open('input.txt', 'r')
- out = open('output.txt', 'w')
- mas = list(map(int,inp.readline().strip().split()))
- n = mas[0]
- m = mas[1]
- arr = []
- for i in range(n):
- arr.append(list(map(int, inp.readline().split())))
- out.write(str(m) + ' ' + str(n))
- out.write('\n')
- for i in range(m):
- for j in range(n - 1, -1, -1):
- out.write(str(arr[j][i]) + ' ')
- out.write('\n')
- inp.close()
- out.close()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement