import java.util.*; //Definition for singly-linked list. class ListNode { int val; ListNode next; ListNode(int x) { val = x; next = null; } } public class Solution { //小根堆 /* public static class MyComp implements Comparator { @Overri...