지나가던 개발자

[Python] 백준 7568번(덩치) 문제 풀이 본문

PS/Python

[Python] 백준 7568번(덩치) 문제 풀이

KwonYongHyeon 2022. 12. 1. 00:24

 

n = int(input())
people = []
for i in range(n):
    people.append(list(map(int, input().split())))
    
for i in people:
    ranking = 1
    for j in people:
        if i[0] < j[0] and i[1] < j[1]:
            ranking += 1
    print(ranking, end=" ")
Comments