[CodeTree] 나무박멸(JAVA)
import java.io.BufferedReader; import java.io.IOException; import java.io.InputStreamReader; import java.util.PriorityQueue; import java.util.StringTokenizer; public class Main { static int n, m, k, c, result = 0; static Tree[][] arr; static PriorityQueue queue = new PriorityQueue(); static int[][] dir = { { 0, 1 }, { 0, -1 }, { 1, 0 }, { -1, 0 } }; static int[][] crossDir = { { 1, 1 }, { -1, -1..
2023. 4. 5.