본문 바로가기
Beakjoon&프로그래머스/파이썬

[백준/파이썬] 28454번 Gift Expire Date

by 현장 2023. 12. 24.

-Code

now_date = list(map(int, input().split('-')))
res = 0

for _ in range(int(input())):
    gift_date = list(map(int, input().split('-')))

    if gift_date >= now_date:
        res += 1

print(res)