You are viewing a single comment's thread. Return to all comments →
n, m = map(int, input().split()) arr = [list(map(int, input().rstrip().split())) for _ in range(n)] k = int(input()) [print(*i) for i in sorted(arr, key=lambda x: x[k])]
Seems like cookies are disabled on this browser, please enable them to open this website
Athlete Sort
You are viewing a single comment's thread. Return to all comments →