码迷,mamicode.com
首页 >  
搜索关键字:smallest sub-array    ( 590个结果
SICP 1.21 1.22 1.23 1.24
解:相关代码如下,时间测不出来 #lang?racket (define?(square?x) ??(*?x?x)) (define?(smallest-divisor?n) ??(define?(divides??a?b) ????(=?(remainder?b?a)?0)) ??(define?(next...
分类:其他好文   时间:2014-08-17 18:43:12    阅读次数:187
Basic remains
Problem Description Given a base b and two non-negative base b integers p and m, compute p mod m and print the result as a base b integer. p mod m is defined as the smallest non-negative integer k ...
分类:其他好文   时间:2014-08-16 21:11:11    阅读次数:169
To the Max
DescriptionGiven a two-dimensional array of positive and negative integers, a sub-rectangle is any contiguous sub-array of size 1*1 or greater located...
分类:其他好文   时间:2014-08-14 23:39:56    阅读次数:234
ZOJ 1074 To the Max (DP)
Problem Given a two-dimensional array of positive and negative integers, a sub-rectangle is any contiguous sub-array of size 1 x 1 or greater located within the whole array. The sum of a rectangle...
分类:其他好文   时间:2014-08-14 01:35:57    阅读次数:228
程序猿的自我修养清单
Data Structures    1. Integer       – find number of 1s       – next largest smaller       – smallest larger number       – determine if is palindrom       – itoa, atoi       – add 2 numbers w/...
分类:其他好文   时间:2014-08-05 15:50:40    阅读次数:408
F - To the Max
Given a two-dimensional array of positive and negative integers, a sub-rectangle is any contiguous sub-array of size 1*1 or greater located within th....
分类:其他好文   时间:2014-08-05 13:38:49    阅读次数:218
HDU 1081 To The Max
DescriptionGiven a two-dimensional array of positive and negative integers, a sub-rectangle is any contiguous sub-array of size 1 x 1 or greater locat...
分类:其他好文   时间:2014-07-31 02:38:55    阅读次数:292
UVA 11997 - K Smallest Sums(优先队列+多路合并)
UVA 11997 - K Smallest Sums 题目链接 题意:给定k个数组,每个数组k个数字,要求每个数字选出一个数字,构成和,这样一共有kk种情况,要求输出最小的k个和 思路:其实只要能求出2组的前k个值,然后不断两两合并就可以了,因为对于每两组,最后答案肯定是拿前k小的去组合。然后问题就变成怎么求2组下的情况了,利用一个优先队列维护,和作为优先级,先把原数组都从小到...
分类:其他好文   时间:2014-07-26 15:11:40    阅读次数:295
K Smallest Sums
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
SUSAN检测算子
USAN区域(核同值区):和核像素的灰度相同会相信的模板像素的区域。利用这个区域的尺寸、重心、二阶矩等可以帮助检测图像的边缘和角点。利用USAN的面积作为特征可以起到增强边缘和角点的效果。该方法不用计算微分,对噪声不敏感。SUNAN算子边缘检测(最小(Smallest)核同值区):检测模板有37个象...
分类:其他好文   时间:2014-07-23 22:11:07    阅读次数:355
590条   上一页 1 ... 55 56 57 58 59 下一页
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!