题目链接:http://acm.hdu.edu.cn/showproblem.php?pid=5542 Problem DescriptionCao Cao made up a big army and was going to invade the whole South China. Yu Zh ...
分类:
编程语言 时间:
2018-11-03 00:03:01
阅读次数:
163
The Battle of Chibi Cao Cao made up a big army and was going to invade the whole South China. Yu Zhou was worried about it. He thought the only way to ...
分类:
编程语言 时间:
2018-10-11 22:04:08
阅读次数:
198
题目链接 Description An army of ants walk on a horizontal pole of length l cm, each with a constant speed of 1 cm/s. When a walking ant reaches an end of ...
分类:
其他好文 时间:
2018-10-04 12:56:23
阅读次数:
142
Time Limit: 1000MS Memory Limit: 65536K Total Submissions: 16957 Accepted: 5896 Description Windy has a country, and he wants to build an army to prot ...
分类:
其他好文 时间:
2018-08-31 13:14:29
阅读次数:
113
题意很迷,给一棵n个节点的树,每个节点有一个权值是这个节点完成其任务的时间。 比如第一个任务的权值是1,完成它将在第一秒,第二个任务的权值是2,完成前两个任务的时间是3秒。 现在问你完成任务的时间再加上罚时是多少,罚时是完成任务的时间再加上它开始做任务的时间。比如一个任务权值是3,从第四秒开始做,那 ...
分类:
其他好文 时间:
2018-08-26 16:38:15
阅读次数:
190
题目描述 In the country there are n n n cities and m m m bidirectional roads between them. Each city has an army. Army of the i i i -th city consists of a ...
分类:
其他好文 时间:
2018-07-23 20:22:06
阅读次数:
223
因为题目中要求使连续死亡的机器人最多,令人联想到二分答案。 考虑如何检验这之中是否存在一段连续的长度为md的区间,其中花最多k步使得它们都死亡。 这个条件等价于区间中m个最大值的和不超过k。 枚举起点,可以用 $ O(mlogn) $ 的时间确定这段区间是否合法,最终check的复杂度是 $ O(n ...
分类:
其他好文 时间:
2018-07-11 21:57:43
阅读次数:
165
TEXT 51 The seven-year itch 七年之痒(陈继龙编译) Jul 27th 2006 | MACAU From The Economist print edition THE army of workers operating along what used to be Mac ...
分类:
其他好文 时间:
2018-06-26 01:09:18
阅读次数:
188
Description Windy has a country, and he wants to build an army to protect his country. He has picked up N girls and M boys and wants to collect them t ...
分类:
其他好文 时间:
2018-06-11 23:34:16
阅读次数:
225
传送门 题目描述 The students of the HEU are maneuvering for their military training.The red army and the blue army are at war today. The blue army finds that ...
分类:
其他好文 时间:
2018-06-07 21:52:28
阅读次数:
156