diff --git "a/lkhyun/202511/11 BOJ G2 \352\260\200\354\232\264\353\215\260\353\245\274 \353\247\220\355\225\264\354\232\224.md" "b/lkhyun/202511/11 BOJ G2 \352\260\200\354\232\264\353\215\260\353\245\274 \353\247\220\355\225\264\354\232\224.md" new file mode 100644 index 00000000..e22cef0c --- /dev/null +++ "b/lkhyun/202511/11 BOJ G2 \352\260\200\354\232\264\353\215\260\353\245\274 \353\247\220\355\225\264\354\232\224.md" @@ -0,0 +1,26 @@ +```java +import java.util.*; +import java.io.*; + +public class Main{ + static BufferedReader br = new BufferedReader(new InputStreamReader(System.in)); + static BufferedWriter bw = new BufferedWriter(new OutputStreamWriter(System.out)); + static StringBuilder sb = new StringBuilder(); + static int N; + static PriorityQueue minheap = new PriorityQueue<>(); + static PriorityQueue maxheap = new PriorityQueue<>(Comparator.reverseOrder()); + public static void main(String[] args) throws Exception { + N = Integer.parseInt(br.readLine()); + + for(int i = 0; i