摘要: 1、区间贪心:指当有多个不同的区间存在,且这些区间有可能互相重叠的时候, 如何选择才能从众多区间中,选取最多的两两不相交的区间。 2、贪心策略可以用来解决最优化问题 阅读全文
posted @ 2020-08-07 19:43 Tomorrow1126 阅读(216) 评论(0) 推荐(0) 编辑
摘要: #include<cstdio> #include<iostream> #include<string> #include<cstring> #include<cmath> #include<stdlib.h> #include<algorithm> #include<vector> #includ 阅读全文
posted @ 2020-08-07 15:05 Tomorrow1126 阅读(63) 评论(0) 推荐(0) 编辑