문제 https://www.acmicpc.net/problem/2178 풀이 0과 1로 이루어진 미로에서 한칸씩 이동하며 목표 거리까지 도달하는 데에 소요되는 최소 거리를 구하는 문제다. 최단 거리를 찾아야하기 때문에 bfs를 활용해서 풀이했다. // 2178 미로탐험 const [N, M, ...rows] = require("fs") .readFileSync("/dev/stdin") .toString() .trim() ...
studio-pendant.hashnode.dev1 min readNo responses yet.