목록백준 (18)
지구정복
-문제 https://www.acmicpc.net/problem/1260 -자바 package bfs_dfs; import java.io.BufferedReader; import java.io.IOException; import java.io.InputStreamReader; import java.util.LinkedList; import java.util.Queue; import java.util.StringTokenizer; public class BJ1260 { static int n,m,v; static int[][] map; static boolean[] visit; static StringBuffer sb = new StringBuffer(); public static void main(Str..
-문제 https://www.acmicpc.net/problem/16173 -자바(dfs) package bfs_dfs; import java.io.BufferedReader; import java.io.BufferedWriter; import java.io.IOException; import java.io.InputStreamReader; import java.io.OutputStreamWriter; import java.util.StringTokenizer; public class Jelly1 { private static BufferedWriter bw = new BufferedWriter( new OutputStreamWriter( System.out ) ); private static int d..