프로그래머스 :: 크레인 인형뽑기 - python 풀이공유
https://programmers.co.kr/learn/courses/30/lessons/64061?language=python3 코딩테스트 연습 - 크레인 인형뽑기 게임 [[0,0,0,0,0],[0,0,1,0,3],[0,2,5,0,1],[4,2,4,4,2],[3,5,1,3,1]] [1,5,3,5,1,2,1,4] 4 programmers.co.kr 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 def solution(board, moves): answer = 0 stack = [] for m in moves: for i in range(len(board)): if board[i][m - 1] != 0: stack.append(board[i][m - 1]) boar..
더보기