上一页 1 ··· 7 8 9 10 11 12 13 14 15 ··· 23 下一页
摘要: https://uva.onlinejudge.org/index.php?option=com_onlinejudge&Itemid=8&page=show_problem&problem=1498题意的意思是给你n个房间,每个房间有一个价值,每个房间可以通向一些其... 阅读全文
posted @ 2015-12-31 08:42 __NaCl 阅读(96) 评论(0) 推荐(0) 编辑
摘要: Problem DescriptionThere are n apple trees planted along a cyclic road, which is L metres long. Your storehouse is built at position 0 on that cyclic ... 阅读全文
posted @ 2015-12-31 08:41 __NaCl 阅读(85) 评论(0) 推荐(0) 编辑
摘要: Your current task is to make a ground plan for a residential building located in HZXJHS. So you must determine a way to split the floor building wit... 阅读全文
posted @ 2015-12-31 08:41 __NaCl 阅读(114) 评论(0) 推荐(0) 编辑
摘要: DescriptionMany people like to solve hard puzzles some of which may lead them to madness. One such puzzle could be finding a hidden prime number in a ... 阅读全文
posted @ 2015-12-31 08:41 __NaCl 阅读(78) 评论(0) 推荐(0) 编辑
摘要: Kruskal算法的过程:(1) 将全部边按照权值由小到大排序。 (2) 按顺序(边权由小到大的顺序)考虑没条边,只要这条边和我们已经选择的边步构成圈,就保留这条边,否则放弃这条边。算法 成功选择(n-1)条边后,形成一个棵最小生成树,当然如果算法无法选择出(n-1)... 阅读全文
posted @ 2015-12-31 08:41 __NaCl 阅读(326) 评论(0) 推荐(0) 编辑
摘要: Judging Troubles Time Limit: 5000ms, Special Time Limit:12500ms, Memory Limit:65536KB Total submit users: 91, Accepted users: 72 Problem 13352 : No s... 阅读全文
posted @ 2015-12-31 08:41 __NaCl 阅读(107) 评论(0) 推荐(0) 编辑
摘要: 题目链接http://acm.hnu.cn/online/?action=problem&type=show&id=13342&courseid=0 Problem description The races became more popular than ever at Pandora plan... 阅读全文
posted @ 2015-12-31 08:41 __NaCl 阅读(118) 评论(0) 推荐(0) 编辑
摘要: 题目链接:http://www.51nod.com/onlineJudge/questionCode.html#!problemId=1278这道题需要用到两个姿势第一将圆相离的模型转换成线段和线段之间不想交,然后还有一个就是修改循环变量的步长。达到降低时间复杂度的效... 阅读全文
posted @ 2015-12-31 08:41 __NaCl 阅读(94) 评论(0) 推荐(0) 编辑
摘要: 题目链接http://www.51nod.com/onlineJudge/questionCode.html#!problemId=1279这道题要求的就是当顶被封之前有多少盘被扔下去= =当顶被封住时 即使下面的盘子再小也不能扔下去我们用a[]保存井的宽度,数组b[... 阅读全文
posted @ 2015-12-31 08:41 __NaCl 阅读(85) 评论(0) 推荐(0) 编辑
摘要: 1:最大公约数的求法欧几里得算法实现。递归实现 1 #include 2 #include 3 #include 4 #include 5 using namespace std; 6 __int64 gcd(__int64 y,__int64 x) 7 { 8 ... 阅读全文
posted @ 2015-12-31 08:41 __NaCl 阅读(117) 评论(0) 推荐(0) 编辑
上一页 1 ··· 7 8 9 10 11 12 13 14 15 ··· 23 下一页