贪心
whiskey_wei
这个作者很懒,什么都没留下…
展开
-
poj3253 Fence Repair —huffman&&贪心(离散数学233)
Fence Repair原创 2017-07-16 09:48:53 · 288 阅读 · 0 评论 -
hdu1009
Problem Description FatMouse prepared M pounds of cat food, ready to trade with the cats guarding the warehouse containing his favorite food, JavaBean. The warehouse has N rooms. The i-th room conta原创 2017-07-28 15:52:57 · 191 阅读 · 0 评论 -
hdu2037
先按照结束时间排序,贪心 #include #include #include using namespace std; struct node { int st; int en; }cl[105]; bool cmp(node x,node y) { return x.en } int main() { int n,cnt;原创 2017-07-28 15:25:57 · 156 阅读 · 0 评论