Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- def printMatrix ( matrix ):
- for row in matrix:
- print (*row)
- n = int(input())
- a = []
- for i in range(n):
- a.append(list(map(int, input().split())))
- a.sort(key=lambda x: x[1], reverse=True)
- printMatrix(a)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement