Radar Installation
Time Limit: 1000MS
Memory Limit: 10000K
Total Submissions: 59449
Accepted: 13394
Description
Assume the coasting is an infinite straight line. Land i...
分类:
其他好文 时间:
2015-05-29 10:11:35
阅读次数:
157
Protecting the Flowers
Time Limit: 2000MS
Memory Limit: 65536K
Total Submissions: 4950
Accepted: 1975
Description
Farmer John went to cut some wood and left N (2 ≤ N ...
分类:
其他好文 时间:
2015-05-29 10:01:37
阅读次数:
141
Cleaning Shifts
Time Limit: 1000MS
Memory Limit: 65536K
Total Submissions: 12788
Accepted: 3312
Description
Farmer John is assigning some of his N (1 <= N <= 25,000) co...
分类:
其他好文 时间:
2015-05-28 21:39:11
阅读次数:
365
Saruman's Army
Time Limit: 1000MS
Memory Limit: 65536K
Total Submissions: 5049
Accepted: 2617
Description
Saruman the White must lead his army along a straight path f...
分类:
其他好文 时间:
2015-05-28 14:11:10
阅读次数:
158
Apparently, more expensive flowers should be bought with lower coeff. (Greedy part), and any unbalanced assignment would cause extra cost.So the code ...
分类:
其他好文 时间:
2015-05-26 15:44:52
阅读次数:
95
poj1113-Wall
Wall
Time Limit: 1000MS
Memory Limit: 10000K
Total Submissions: 31394
Accepted: 10610
Description
Once upon a time there was a greedy King w...
分类:
其他好文 时间:
2015-05-25 10:07:39
阅读次数:
147
A:http://codeforces.com/problemset/problem/545/A
题意:告诉你车的碰撞情况,求最后好的车剩几辆
思路:直接模拟B:http://codeforces.com/problemset/problem/545/B
题意:输入两个等长字符串s和t,都只包含0和1。定义s和t的距离为s和t中相同位置i并且s[i]!=t[i]的个数。
比如0001和101...
分类:
其他好文 时间:
2015-05-20 11:22:38
阅读次数:
130
HDU 4221 Greedy?(贪心啊啊)...
分类:
其他好文 时间:
2015-05-17 21:55:18
阅读次数:
167
我研一下学期选修了网络管理,因为是限选课所以我没有认真上课,今天因为快结课考试了,我才去,然后我发现了一个大秘密。。。。。。
原来老师从第三节课已经开始讲算法导论的知识了,我是不是错过了什么。。。废话不多说,介绍贪婪算法首先普及一下图论的基本先验知识图(Graphs)包括有向图和无向图。
表示为:
G=(V,E);
V是顶点集,E是边集。
有向图(i,j)属于E,i—->j;
无向图(i...
分类:
编程语言 时间:
2015-05-15 09:08:29
阅读次数:
258
Now the God is very angry, so he wants to punish the lazy, greedy humans. He chooses to throw some lines of bricks (just down from the very high Heaven). These days the God lives in a
2D world, so h...
分类:
其他好文 时间:
2015-05-08 16:28:43
阅读次数:
162