Advertisement
nq1s788

Untitled

Oct 14th, 2023
639
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.32 KB | None | 0 0
  1. n, m = map(int, input().split())
  2. #############
  3. mx = [[0 for i in range(m)] for j in range(n)]
  4. for i in range(n):
  5.     a = list(map(int, input().split()))
  6.     for j in range(m):
  7.         mx[i][j] = a[j]
  8. print(mx)
  9. ############
  10. mx = []
  11. for i in range(n):
  12.     a = list(map(int, input().split()))
  13.     mx.append(a)
  14. print(mx)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement