[백준|파이썬] 16173: 점프왕 쩰리 (Small) (실버4)
문제 https://www.acmicpc.net/problem/16173 16173번: 점프왕 쩰리 (Small) 쩰리는 맨 왼쪽 위의 칸에서 출발해 (행, 열)로 나타낸 좌표계로, (1, 1) -> (2, 1) -> (3, 1) -> (3, 3)으로 이동해 게임에서 승리할 수 있다. www.acmicpc.net 🐍파이썬 더보기 메모리 초과된 코드 import sys from collections import deque n = int(sys.stdin.readline()) game = [] for _ in range(n): game.append(list(map(int, sys.stdin.readline().split()))) dy = [0, 1] dx = [1, 0] def bfs(x, y): queue..
2023. 4. 9.