나의 풀이

def solution(lottos, win_nums):
    reward = [6, 6, 5, 4, 3, 2, 1]
    count, zero = 0, 0
    
    for i in lottos:
        if i in win_nums:
            count += 1
        if i == 0:
            zero += 1

    return reward[count + zero], reward[count]

+ Recent posts