贪心算法
真真知知
哈哈哈哈,肥宅改变世界。
展开
-
贪心算法B 最小费用流 vanya ,exam
题目描述:Vanya wants to pass n exams and get the academic scholarship. He will get the scholarship if the average grade mark for all the exams is at least avg. The exam grade cannot exceed r. Vanya has ...原创 2019-02-02 19:14:45 · 331 阅读 · 0 评论 -
贪心算法C,杭电老师发工资c++
题目描述:作为杭电的老师,最盼望的日子就是每月的8号了,因为这一天是发工资的日子,养家糊口就靠它了,呵呵但是对于学校财务处的工作人员来说,这一天则是很忙碌的一天,财务处的小胡老师最近就在考虑一个问题:如果每个老师的工资额都知道,最少需要准备多少张人民币,才能在给每位老师发工资的时候都不用老师找零呢?这里假设老师的工资都是正整数,单位元,人民币一共有100元、50元、10元、5元、2元和1元...原创 2019-02-04 17:28:37 · 583 阅读 · 0 评论 -
贪心算法D 猫和老鼠c++
题目描述: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 contains J[i] pounds...原创 2019-02-06 11:34:44 · 1596 阅读 · 0 评论 -
贪心算法E Saruman's army (最小点覆盖)
题目描述:Saruman the White must lead his army along a straight path from Isengard to Helm’s Deep. To keep track of his forces, Saruman distributes seeing stones, known as palantirs, among the troops. Ea...原创 2019-02-09 18:44:13 · 474 阅读 · 0 评论