2025年5月26日
摘要: 1、贪心算法 1、反悔性质的 priority_queue用法: 定义priority_queue<元素类型, 底层容器类型, 比较函数对象类型> 队列名; 推荐洛谷:P2949 ——绿题> https://www.luogu.com.cn/problem/P2949 (2)比较函数:greater 阅读全文
posted @ 2025-05-26 16:03 Siannnn 阅读(30) 评论(0) 推荐(0)