자바생
자바(백준) 7569 토마토-3차원(2021.05.25 수정)
BOJ(Java) 2021. 1. 6. 16:36

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 package BFS; import java.util.*; public class Main { static int row,col,myeon; static int ad[][][]; static boolean visit[][][]; static Queue q ..

자바(백준) 6118 숨바꼭질
BOJ(Java) 2021. 1. 6. 14:07

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 import java.util.*; import java.io.*; public class Main { static int nV, nE; static ArrayList ad[]; public static void main(String args[]) throws IOException { BufferedReader br = new BufferedRe..

자바(백준) 5567 결혼식
BOJ(Java) 2021. 1. 4. 17:10

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 import java.io.*; import java.util.*; public class Main { static int n,m; static boolean visit[]; static ArrayList ad[]; static int limit[]; public static void main(String[] args) throws IOException { Buffered..

자바(백준) 2178 미로 탐색
BOJ(Java) 2021. 1. 4. 15:28

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 import java.io.*; import java.util.*; public class Main { static int n, m; static int ad[][]; static boolean visit[][]; static int count[][]; public static void main(String[] args) throws IOException { BufferedReader b..

자바(백준) 1926 그림
BOJ(Java) 2021. 1. 4. 14:45

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 import java.io.*; import java.util.*; public class Main { static int n,m; static int ad[][]; static boolean visit[][]; public static void main(String[] args) throws IOException{ BufferedReader b..

자바(백준) 1743 음식물 피하기
BOJ(Java) 2021. 1. 4. 14:42

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 import java.io.*; import java.util.*; public class Main { static int width, height, garbage; static int ad[][]; static boolean visit[][]; public static void main(String[] args) throws IOEx..

자바(백준) 1697 숨바꼭질
BOJ(Java) 2021. 1. 4. 14:23

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 import java.io.*; import java.util.*; public class Main { static int start, end; static boolean visit[]; static int count[]; public static void main(String[] args) throws IOException{ BufferedReader br = new BufferedReader(new InputStreamReader(System.in)); StringToken..

자바(백준) 1389 케빈 베이컨의 6단계 법칙
BOJ(Java) 2020. 12. 30. 16:23

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 import java.io.*; import java.util.*; public class Main { static int nV, nE; static int ad[][]; static boolean visit[]; static int count[][]; public static void main(String[] args) throws IOExce..

자바(백준) 11724 연결 요소의 개수
BOJ(Java) 2020. 12. 30. 14:36

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 import java.io.*; import java.util.*; public class Main { static int nV, nE; static int ad[][]; static boolean visit[]; static int component = 0; public static void main(String[] args) throws IOException{ BufferedReader br = new BufferedReader(new Inp..

자바(백준) 7562 나이트의 이동
BOJ(Java) 2020. 12. 30. 13:49

ㄴㄴㄴㄴㄴㄴㄴㄴㄴㄴ 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 import java.io.*; import java.util.*; public class Main { static int count[][]; static boolean visit[][]; static int size; public static void main(String[] args) throws IOExcept..

자바(백준) 4963 섬의 개수
BOJ(Java) 2020. 12. 30. 12:05

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 import java.io.*; import java.util.*; public class Main { static int w,h; static int ad[][]; static boolean visit[][]; public static void main(String[] args) throws IOException{ BufferedReader br = new B..

자바(백준) 3184 양
BOJ(Java) 2020. 12. 30. 11:35

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 import java.io.*; import java.util.*; public class Main { static int row,col; static char ad[][]; static boolean visit[][]; static int cntO = 0; static int cn..

728x90

검색 태그