[백준 JAVA] 1012번: 유기농 배추
https://www.acmicpc.net/problem/1012 import java.io.BufferedReader;import java.io.IOException;import java.io.InputStreamReader;import java.util.StringTokenizer;public class Main { public static int T, M, N, K, ans; public static int[][] map, visited; public static int[] dr = {-1, 0, 1, 0}; public static int[] dc = {0, 1, 0, -1}; public static void main(String[] args) throws IOExce..
[프로그래머스 JAVA] 지형 이동
https://school.programmers.co.kr/learn/courses/30/lessons/62050?language=java# 프로그래머스SW개발자를 위한 평가, 교육, 채용까지 Total Solution을 제공하는 개발자 성장을 위한 베이스캠프programmers.co.kr import java.util.*;class Solution { public static int N, h, cnt = 0; public static int[] dr = {-1, 0, 1, 0}; public static int[] dc = {0, 1, 0 ,-1}; public static int[][] visited; public static PriorityQueue pq = new Pri..