摘要: 方式 1 struct ab{ int b,v,k; bool operator <(const ab &a)const{//代表前(v)与后(a.v)进行比较 return v>a.v; } }; priority_queue<ab> q; 方式 2 struct ab{ int b,v,k; f 阅读全文
posted @ 2025-10-21 09:09 Sqqqz185 阅读(8) 评论(0) 推荐(0)