목록유기농 배추 (1)
-
[BOJ - JAVA] 1012 - 유기농 배추(BFS)
# 주소 https://www.acmicpc.net/problem/1012 1012번: 유기농 배추 차세대 영농인 한나는 강원도 고랭지에서 유기농 배추를 재배하기로 하였다. 농약을 쓰지 않고 배추를 재배하려면 배추를 해충으로부터 보호하는 것이 중요하기 때문에, 한나는 해충 방지에 www.acmicpc.net # 문제 # 문제 해설 및 코드 리뷰 import java.util.*; import java.awt.Point; public class Main{ public static int[] dx = {0,1,0,-1}; public static int[] dy = {1,0,-1,0}; public static int n,width,height,m; public static int arr[][]; publi..
백준 문제 풀이
2021. 11. 22. 18:31