题目来源:http://uva.onlinejudge.org/index.php?option=com_onlinejudge&Itemid=8&page=show_problem&problem=1310 最小生成树问题,Prim算法在这种给出坐标的情况相对Kruskal算法优势还是很大。 .....
分类:
Web程序 时间:
2014-08-04 20:39:27
阅读次数:
312
http://uva.onlinejudge.org/index.php?option=com_onlinejudge&Itemid=8&page=show_problem&problem=2414
Problem C
SAM I AM
Input: Standard Input
Output: Standard Output
The world is in gre...
分类:
其他好文 时间:
2014-08-01 13:51:41
阅读次数:
328
http://uva.onlinejudge.org/index.php?option=com_onlinejudge&Itemid=8&page=show_problem&problem=1271
Power Transmission
The Problem
DESA is taking a new project to transf...
分类:
其他好文 时间:
2014-07-29 13:12:27
阅读次数:
285
题目链接:https://icpcarchive.ecs.baylor.edu/index.php?option=com_onlinejudge&Itemid=8&category=584A:UVAlive 6161Decision Making题意:给出01字符串,判断中间两位是否相同,相同就输出...
分类:
其他好文 时间:
2014-07-29 11:17:26
阅读次数:
402
http://uva.onlinejudge.org/index.php?option=com_onlinejudge&Itemid=8&category=116&page=show_problem&problem=1535
Problem F
Data Flow
Time Limit
5 Seconds
I...
分类:
其他好文 时间:
2014-07-28 00:17:39
阅读次数:
381
题目来源:http://uva.onlinejudge.org/index.php?option=com_onlinejudge&Itemid=8&page=show_problem&problem=1549 并查集,求出每个friends集合,然后再计算每个集合friends个数,求出最...
分类:
其他好文 时间:
2014-07-27 22:01:29
阅读次数:
234
uva10003:http://uva.onlinejudge.org/index.php?option=com_onlinejudge&Itemid=8&page=show_problem&problem=944题意:给你一个木棍,然后让你切n刀,每次切都会有一个费用。例如,假如说一开始木棍长是1...
分类:
其他好文 时间:
2014-07-27 11:06:12
阅读次数:
219
uvaLive 3644:https://icpcarchive.ecs.baylor.edu/index.php?option=com_onlinejudge&Itemid=8&page=show_problem&problem=1645题意::每个化合物都是有两种元素组成的,如果车上存在k个简单...
分类:
其他好文 时间:
2014-07-27 09:59:12
阅读次数:
282
uva11997:http://uva.onlinejudge.org/index.php?option=com_onlinejudge&Itemid=8&page=show_problem&category=24&problem=3148&mosmsg=Submission+received+wi...
分类:
其他好文 时间:
2014-07-25 23:55:50
阅读次数:
541
题目连接:http://uva.onlinejudge.org/index.php?option=com_onlinejudge&Itemid=8&page=show_problem&problem=15761393538110635Prince and PrincessAcceptedC++0.0...
分类:
其他好文 时间:
2014-07-24 14:36:35
阅读次数:
221