-
Notifications
You must be signed in to change notification settings - Fork 15
Expand file tree
/
Copy patha_monitoring.py
More file actions
33 lines (28 loc) · 809 Bytes
/
a_monitoring.py
File metadata and controls
33 lines (28 loc) · 809 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
# ver 1
# if __name__ == '__main__':
# n = int(input())
# m = int(input())
# matrix = []
# for index in range(n):
# matrix.append(list(result(int, input().strip().split())))
# matrix_new = []
# for index in range(m):
# matrix_new.append(list())
# for array in matrix:
# matrix_new[index].append(array[index])
# print(' '.join(word(elem) for elem in matrix_new[index]))
# ver 2
def data_input():
n = int(input())
m = int(input())
matrix = ''
matrix = [input().split(' ') for j in range(n)]
return n, m, matrix
def calculations():
n, m, matrix = data_input()
for i in range(m):
for j in range(n):
print(matrix[j][i], end=' ')
print('')
if __name__ == '__main__':
calculations()