解题思路:这是一道简单的贪心题,能力强的骑士开价高,如果能力强,去砍一个很弱 的头,就是浪费人才。所以把雇来的骑士按照能力从小到大排序,所有头直径 按照从小到大排序,一个一个砍就可以了。不能砍掉当前头的就不用雇佣了。 1 #include 2 #include 3 #include ...
分类:
其他好文 时间:
2015-09-18 21:45:09
阅读次数:
129
uva11292 Dragon of Loowater 链接:https://uva.onlinejudge.org/index.php?option=com_onlinejudge&Itemid=8&page=show_problem&category=456&problem=2267&mosm....
分类:
其他好文 时间:
2015-09-12 14:53:13
阅读次数:
117
Problem DescriptionFive hundred years later, the number of dragon balls will increase unexpectedly, so it's too difficult for Monkey King(WuKong) to g...
分类:
其他好文 时间:
2015-09-11 14:18:26
阅读次数:
248
Kyoya Ootori has a bag withncolored balls that are colored withkdifferent colors. The colors are labeled from1tok. Balls of the same color are indisti...
分类:
其他好文 时间:
2015-09-10 00:18:43
阅读次数:
205
今天讨论的是称球问题. No.3 13 balls problemYou are given 13 balls. The odd ball may be either heavier or lighter. Find out the odd ball in 3 weightings.分析与解答:看到...
分类:
其他好文 时间:
2015-09-09 11:07:18
阅读次数:
108
DescriptionThe cows don't use actual bowling balls when they go bowling. They each take a number (in the range 0..99), though, and line up in a standa...
分类:
其他好文 时间:
2015-09-01 20:04:14
阅读次数:
238
DescriptionThe police office in Tadu City decides to say ends to the chaos, as launch actions to root up the TWO gangs in the city, Gang Dragon and Ga...
分类:
其他好文 时间:
2015-08-30 14:16:53
阅读次数:
126
Dragon Balls
Time Limit: 2000/1000 MS (Java/Others) Memory Limit: 32768/32768 K (Java/Others)
Total Submission(s): 4582 Accepted Submission(s): 1747
Problem Description
Five hundre...
分类:
其他好文 时间:
2015-08-26 22:38:07
阅读次数:
191
题目链接:http://poj.org/problem?id=3687注意重边代码:#include
#include
#include
#include
#include
#include
#include
#include <it...
分类:
编程语言 时间:
2015-08-25 21:42:58
阅读次数:
140
lightOJ 1317 Throwing Balls into the Baskets(期望)解题报告题目链接:http://acm.hust.edu.cn/vjudge/contest/view.action?cid=88890#problem/A题目:DescriptionYou probab...