码迷,mamicode.com
首页 >  
搜索关键字:maximum number of th    ( 33896个结果
[leetcode]Plus One
Plus OneGiven a non-negative number represented as an array of digits, plus one to the number.The digits are stored such that the most significant dig...
分类:其他好文   时间:2014-07-18 16:17:10    阅读次数:249
Poj 1144 Zoj 1311 求割点 模板
写这个就是为了手写一份好用的求割点模板: 吐槽下,题目中的 Each of the next at most N lines contains the number of a place followed by the numbers of some places to which there is a direct line from this place.  这个at most是不可信的,应...
分类:其他好文   时间:2014-07-18 11:29:34    阅读次数:232
Blue Jeans
Blue Jeans Time Limit:1000MS     Memory Limit:65536KB     64bit IO Format:%I64d & %I64u Submit Status Description The Genographic Project is a research partnership between IBM and Th...
分类:其他好文   时间:2014-07-18 11:23:53    阅读次数:224
JS---正则表达式验证
function is_number(field,div_id)//div_id是显示错误的div的ID{ var patt=new RegExp("^[0-9]{1,2}$");//建立正则表达式对象patt with(field){ if(patt.test(value)==false){//....
分类:Web程序   时间:2014-07-18 10:30:53    阅读次数:224
[leetcode]Reverse Integer
Reverse IntegerReverse digits of an integer.Example1:x = 123, return 321Example2:x = -123, return -321click to show spoilers.Have you thought about th...
分类:其他好文   时间:2014-07-18 09:34:59    阅读次数:212
CodeForces114E——Double Happiness(素数二次筛选)
Double HappinessOn the math lesson a teacher asked each pupil to come up with his own lucky numbers. As a fan of number theory Peter chose prime numbe...
分类:移动开发   时间:2014-07-18 00:12:12    阅读次数:616
曲演杂坛--蛋疼的ROW_NUMBER函数
使用ROW_NUMBER来分页几乎是家喻户晓的东东了,而且这东西简单易用,简直就是程序员居家必备之杀器,然而ROW_NUMBER也不是一招吃遍天下鲜的无敌BUG般存在,最近就遇到几个小问题,拿出来供大家娱乐下。---==========================================...
分类:其他好文   时间:2014-07-18 00:02:19    阅读次数:332
js 判断 0<15<30返回值是 true
与java不一样,因为js是弱语言0<15 返回布尔类型 true,表达式变成true<30,js 有默认类型转换机制,表达式true<30 中的true会 转换成number类型 1,从而变成1< 30,就得到true;总结:一般不要适应,if(0<15<30)这种,一般用&& 或者 || ;js...
分类:Web程序   时间:2014-07-17 22:35:03    阅读次数:266
uva10827-Maximum sum on a torus(矩阵最大和的变形)
题目;uva10827-Maximum sum on a torus(矩阵最大和的变形) 题目大意:就是uva108的变形,矩阵能够连通,就是可以从后面连到前面。这里把矩阵复制三遍,然后重新生成一个大的矩阵,就可以解决联通的问题。再枚举矩阵的起点和终点所有情况,保留最大值就可以了。 例如:1 2 3        2 3 4 新的矩阵: 1 2 3  1 2 3         ...
分类:其他好文   时间:2014-07-17 19:36:02    阅读次数:201
uva108 Maximum sum(矩阵最大和)
题目;uva108 Maximum sum(矩阵最大和) 题目大意:给出一个n*n的矩阵,求这个矩阵的最大和。这个矩阵不是连通的,只能在这个矩阵内找子矩阵,不能越过边界。 解题思路:枚举起点和终点,每个起点和终点就是一个矩阵,每个矩阵都算矩阵和,然后保留最大值。每个矩阵的值只要横着相加一遍,再竖着相加一遍,就可以得出以这个矩阵为起点的所有的子矩阵的和(这里可以直接要这个矩阵的和...
分类:其他好文   时间:2014-07-17 19:26:05    阅读次数:194
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!