СРОЧНО!!!!! НА ПИТОНЕ
Приложения:

Ответы на вопрос
Ответил bilanovfatim
1
Ответ:
n = int(input())
lst = []
for i in range(n):
a, b = map(int, input().split())
lst.append([a, b])
def s(lst):
return lst[1]
lst.sort(key = s, reverse = True)
for i in range (len(lst)-1):
if ((lst[i][1] == lst[i+1][1]) and (lst[i][0] > lst[i+1][0])):
lst[i], lst[i+1] = lst[i+1], lst[i]
for i in lst:
print(*i)
Новые вопросы