백준[JAVA] 1927.최소 힙 - 자바


백준[JAVA] 1927.최소 힙 - 자바

문제 코드 import java.io.BufferedReader; import java.io.IOException; import java.io.InputStreamReader; import java.util.PriorityQueue; public class Main { static PriorityQueue heap = new PriorityQueue(); public static void main(String[] args) throws IOException { BufferedReader br = new BufferedReader(new InputStreamReader(System.in)); int N = Integer.parseInt(br.readLine()); for(int i=0;i


원문링크 : 백준[JAVA] 1927.최소 힙 - 자바