프로그래머스 스쿨 - 개인정보 수집 유효기간(Python)(복습)
today = "2022.05.19" terms = ["A 6", "B 12", "C 3"] privacies = ["2021.05.02 A", "2021.07.01 B", "2022.02.19 C", "2022.02.20 C"] def time_convert(t) : year, month, day = map(int, t.split('.')) return year * 12 * 28 + month * 28 + day # 1달 28일 def solution(today, terms, privacies): term_dict = {} today = time_convert(today) answer = [] for term in terms : name, period = term.split() term_dict[nam..
2023. 10. 2.