```java
Queue<Integer> minheap=new PriorityQueue<>(200000,(x,y)->x-y);
Queue<Integer> maxheap=new PriorityQueue<>(200000,(x,y)->y-x);
大顶堆里出现了比堆顶大的元素
```java
Queue<Integer> minheap=new PriorityQueue<>(200000);
Queue<Integer> maxheap=new PriorityQueue<>(200000,Collections.reverseOrder());
这样就可以了
不知道为什么