随笔分类 - 算法-贪心算法
摘要:时间限制: 1Sec 内存限制: 128MB 提交: 11 解决: 4 时间限制: 1Sec 内存限制: 128MB 提交: 11 解决: 4 时间限制: 1Sec 内存限制: 128MB 提交: 11 解决: 4 题目描述 最近的m天盾神都去幼儿园陪小朋友们玩去了~ 每个小朋友都拿到了一些积木,他
阅读全文
摘要:/* 区间贪心算法: 区间不相交问题,给出n个开区间(x,y),从中选择尽可能多的开区间,使得这些区间亮亮没有交集 */ #include #include #include #include using namespace std; const int maxn = 110; struct Inteval{ int x , y; }I[maxn]; int cmp(...
阅读全文