← Back to List

28454번: Gift Expire Date ↗

Solutions

Python 3
209 B | 209 chars
from datetime import datetime

crt = datetime(*map(int, input().split("-")))
ans = 0

for i in range(int(input())):
    d = datetime(*map(int, input().split("-")))

    if d >= crt:
        ans += 1
print(ans)