
排序
排序
DeterminedDiligent
这个作者很懒,什么都没留下…
展开
专栏收录文章
- 默认排序
- 最新发布
- 最早发布
- 最多阅读
- 最少阅读
-
南阳811 变态最大值
描述 Yougth讲课的时候考察了一下求三个数最大值这个问题,没想到大家掌握的这么烂,幸好在他的帮助下大家算是解决了这个问题,但是问题又来了。他想在一组数中找一个数,这个数可以不是这组数中的最大的,但是要是相对比较大的,但是满足这个条件的数太多了,怎么办呢?他想到了一个办法,把这一组数从开始把每相邻三个数分成一组(组数是从1开始),奇数组的求最大值,偶数组的求最小值,然后找出这些值中的最大原创 2015-06-28 14:18:00 · 663 阅读 · 0 评论 -
HDU 1157 Who's in the Middle
http://acm.hdu.edu.cn/showproblem.php?pid=1157Problem DescriptionFJ is surveying his herd to find the most average cow. He wants to know how much milk this 'median' cow gives: half of the co原创 2016-02-15 13:25:58 · 270 阅读 · 0 评论 -
nanyangoj 7 街区最短路径问题
http://acm.nyist.net/JudgeOnline/problem.php?pid=7描述一个街区有很多住户,街区的街道只能为东西、南北两种方向。住户只可以沿着街道行走。各个街道之间的间隔相等。用(x,y)来表示住户坐在的街区。例如(4,20),表示用户在东西方向第4个街道,南北方向第20个街道。现在要建一个邮局,使得各个住原创 2016-02-15 13:21:24 · 669 阅读 · 0 评论 -
hdu杭电 1379 DNA Sorting
Problem DescriptionOne measure of ``unsortedness'' in a sequence is the number of pairs of entries that are out of order with respect to each other. For instance, in the letter sequence ``DAABEC'',原创 2015-07-25 23:12:40 · 380 阅读 · 0 评论