poj-1042 && nyoj-30(Gone fishing)
题目链接:poj ->http://poj.org/problem?id=1042
nyoj->http://acm.nyist.net/JudgeOnline/problem.php?pid=30
题意;有n个湖,每个湖都有fi条鱼,每钓一次就会减少di条鱼,
问一个人在给定的时间内在按照从 1~n 湖中钓的鱼最多是多少,
并输出这个人在些湖中停留的时间
题解: 贪心 + 枚举
注:
原创
2014-01-17 19:25:36 ·
653 阅读 ·
0 评论