30 Sun

๋กœ๋˜์˜ ์ตœ๊ณ  ์ˆœ์œ„์™€ ์ตœ์ € ์ˆœ์œ„

'''
https://programmers.co.kr/learn/courses/30/lessons/77484
๋กœ๋˜์˜ ์ตœ๊ณ  ์ˆœ์œ„์™€ ์ตœ์ € ์ˆœ์œ„
[ํ’€์ด]
'''
def solution(lottos, win_nums):
    rank = [6, 6, 5, 4, 3, 2, 1]
    unk = lottos.count(0)
    win = 6 - len(set(win_nums) - set(lottos))
    return [rank[win + unk], rank[win]]
'''
'''

Last updated

Was this helpful?