
2178 - 미로찾기 (BFS)
2022. 12. 26. 17:12
알고리즘(BOJ)/Silver
순서도 작성 소스 import java.util.LinkedList; import java.util.Queue; import java.util.Scanner; //백준 public class Main { public static void main(String[] args) { Scanner sc = new Scanner(System.in); int depth = sc.nextInt(); int wide = sc.nextInt(); int[][] array = new int[depth][wide]; boolean[][] visited = new boolean[depth][wide]; Queue q = new LinkedList(); int x, y, count, result=Integer.MAX_VALUE..