package yuki183; import java.util.Collections; import java.util.PriorityQueue; import java.util.Scanner; public class D { public static void main(String[] args) { // TODO Auto-generated method stub Scanner sc = new Scanner(System.in); int q = sc.nextInt(); int k = sc.nextInt(); PriorityQueue maxheap = new PriorityQueue<>(k, Collections.reverseOrder()); PriorityQueue minheap = new PriorityQueue<>(200000); StringBuilder ans = new StringBuilder(); for(int i=0; i