/** * struct ListNode { * int val; * struct ListNode *next; * ListNode(int x) : val(x), next(nullptr) {} * }; */ #include <queue> class campare{ public: bool operator()(ListNode* a,ListNode*b){ return a->val>b->val; } }; class Solution { public: /** * 代碼...