标签:code 优先队列 queue return style 优先 span col str
struct cmp { bool operator ()(Pair a,Pair b) //你想要定义的比较函数 { if(a.second-a.first==b.second-b.first) return a.first>b.first; return a.second-a.first<b.second-b.first; } }; priority_queue<Pair,vector<Pair>,cmp>q;
标签:code 优先队列 queue return style 优先 span col str
原文地址:https://www.cnblogs.com/ljxdtc666/p/12894918.html