[Programmers] 신규 아이디 추천
Python import re def solution(new_id): answer = new_id.lower() answer = re.sub('[^a-z0-9-_.]', '',answer) answer = re.sub('[\.]+', '.', answer) ...
Python import re def solution(new_id): answer = new_id.lower() answer = re.sub('[^a-z0-9-_.]', '',answer) answer = re.sub('[\.]+', '.', answer) ...
Python def solution(lottos, win_nums): answer = [6,6,5,4,3,2,1] count = 0 count_zero = 0 for i in lottos: if i in win_nums: ...
Python import collections def solution(id_list, report, k): answer = [0] * len(id_list) temps = collections.defaultdict(list) count_report = coll...
Python def solution(s): temp = ['zero', 'one', 'two', 'three', 'four', 'five', 'six', 'seven', 'eight', 'nine'] for i in temp: s = s.replace(...
Python def solution(s): answer = "".join(sorted(s, reverse = True)) return answer