목록Algorithm (2)
Done is better than perfect
[BFS] 푸는 방법 정리
백준 2468번 풀면서 정리함package P2468;import java.io.*;import java.util.*;class Node{ int x; int y; public Node(int x, int y) { this.x = x; this.y = y; } @Override public String toString() { return "Node [x=" + x + ", y=" + y + "]"; }}public class Main { static int N; static int max; static int ans; static int[][] map; static boolean[][] visited; static int[] dx= {-1, 0, 1, 0}; static int[] dy= {0, ..
Algorithm
2024. 9. 5. 11:54