[백준] 19238 - 스타트 택시
문제 링크 : https://www.acmicpc.net/problem/19238import sysfrom collections import dequedef findDest(startX, startY, destX, destY, remainedFuel): # 손님을 태우고 목적지로 향하는 함수 fuelMap = [[0 for _ in range(N)] for _ in range(N)] visited = [[0 for _ in range(N)] for _ in range(N)] locations = deque() locations.append([startX, startY, remainedFuel]) while locations: x, y, F = locations..
2024.02.25