diff --git a/week6/KBC/boj_16987.java b/week6/KBC/boj_16987.java new file mode 100644 index 0000000..7349294 --- /dev/null +++ b/week6/KBC/boj_16987.java @@ -0,0 +1,57 @@ +import java.io.BufferedReader; +import java.io.IOException; +import java.io.InputStreamReader; +import java.util.Arrays; + +public class Main { + static int max; + static int n; + static boolean[] isBroken; + static int[][] eggs; + public static void main(String[] args) throws IOException { + BufferedReader br = new BufferedReader(new InputStreamReader(System.in)); + n = Integer.parseInt(br.readLine()); + max = 0; + eggs = new int[n][2]; + isBroken = new boolean[n]; + for(int i=0; i= n) { + return; + } + if(eggs[index][0] <= 0) { + dfs(index+1, count); + return; + } + + for(int i=0; i