243일차 - BOJ no.7568

Dzeko·2022년 3월 22일
0

Daily Algorithm

목록 보기
240/396
post-thumbnail

https://www.acmicpc.net/problem/7568

My Solution

import sys
n = int(sys.stdin.readline().rstrip())

arr = []
for _ in range(n):
    temp = list(map(int, sys.stdin.readline().rstrip().split()))
    arr.append(temp)
for i in arr:
    cnt = 1
    for j in arr:
        if i[0] < j[0] and i[1] < j[1]:
            cnt += 1
    print(cnt)
profile
Hound on the Code

0개의 댓글