daily pastebin goal
74%
SHARE
TWEET

Untitled

a guest Mar 22nd, 2019 55 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. def readM():
  2.     n = int(input())
  3.     M = []
  4.     for i in range(n):
  5.         M.append(list(map(int, input().split())))
  6.     return M
  7. M = readM()
  8. n = int(input())
  9. for i in range(len(M)):
  10.     for j in range(len(M)):
  11.         if i - j == n:
  12.             print(M[i][j], end=' ')
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top