posts - 12,comments - 0,views - 2078
03 2023 档案
贪心
摘要:六、贪心 没有思路的话,先排序。选择当前最好的情况来进行下去。 1.区间分组 #include <iostream> #include <cstring> #include <queue> #include <algorithm>//使每组内部区间不相交,按左端点从小到大排序 using names 阅读全文
posted @ 2023-03-18 14:42 cathyd 阅读(19) 评论(0) 推荐(0) 编辑

< 2025年3月 >
23 24 25 26 27 28 1
2 3 4 5 6 7 8
9 10 11 12 13 14 15
16 17 18 19 20 21 22
23 24 25 26 27 28 29
30 31 1 2 3 4 5

点击右上角即可分享
微信分享提示