码迷,mamicode.com
首页 >  
搜索关键字:number of islands    ( 27069个结果
sdut 2610:Boring Counting(第四届山东省省赛原题,划分树 + 二分)
Boring CountingTime Limit: 3000ms Memory limit: 65536K有疑问?点这里^_^题目描述 In this problem you are given a number sequence P consisting of N integer and Pi....
分类:其他好文   时间:2014-05-08 19:17:31    阅读次数:473
Oracle中的SQL%ROWCOUNT
sql%rowcount用于记录修改的条数,就如你在sqlplus下执行delete from之后提示已删除xx行一样,这个参数必须要在一个修改语句和commit之间放置,否则你就得不到正确的修改行数。例如:SQL> declare n number; 2 begin 3 insert into t...
分类:数据库   时间:2014-05-07 17:21:07    阅读次数:386
LeetCode:Maximum Subarray
题目链接 Find the contiguous subarray within an array (containing at least one number) which has the largest sum. For example, given the array [?2,1,?3,4,...
分类:其他好文   时间:2014-05-07 16:42:42    阅读次数:287
shell 进制转换
包括:i.任意进制转化为十进制((num=base#number)) 【base和number必须一致,是同一种进制】ii.十进制转化为任意进制`echo "obase=进制;值"|bc` 和`echo "值 进制 o p"|bc` 【这里的值代表十进制数字】iii.任意进制互转;有了i和ii就可以...
分类:其他好文   时间:2014-05-07 16:40:14    阅读次数:272
POJ2288:Islands and Bridges(状态压缩)
Description Given a map of islands and bridges that connect these islands, a Hamilton path, as we all know, is a path along the bridges such that it visits each island exactly once. On our map, there...
分类:其他好文   时间:2014-05-07 13:04:35    阅读次数:402
POJ3254:Corn Fields(状态压缩)
Description Farmer John has purchased a lush new rectangular pasture composed of M by N (1 ≤ M ≤ 12; 1 ≤ N ≤ 12) square parcels. He wants to grow some yummy corn for the cows on a number of square...
分类:其他好文   时间:2014-05-07 05:46:43    阅读次数:323
【线段树】HDU 1394 Minimum Inversion Number
minimum inversion number:最小逆序数Minimum Inversion NumberTime Limit: 2000/1000 MS (Java/Others)Memory Limit: 65536/32768 K (Java/Others)Total Submission(...
分类:其他好文   时间:2014-05-07 00:43:39    阅读次数:469
ProjectEuler_P12
Problem:The sequence of triangle numbers is generated by adding the natural numbers. So the 7thtriangle number would be 1 + 2 + 3 + 4 + 5 + 6 + 7 = 28...
分类:其他好文   时间:2014-05-07 00:28:01    阅读次数:365
POJ 2121 Inglish-Number Translator
来源:http://poj.org/problem?id=2121  Inglish-Number Translator Time Limit: 1000MS   Memory Limit: 65536K Total Submissions: 4475   Accepted: 1747 Description In th...
分类:其他好文   时间:2014-05-06 23:29:32    阅读次数:419
leetcode第一刷_Single Number II
其他出现两次,只有一个出现一次的那道题我就不更了,直接抑或,最后的结果就是那个数。为什么可以这样做呢?因为一个32位int,如果所有数都出现了两次,那么为1的那些位统计的个数一定是2的倍数,抑或之后全变成0。一个数出现了一次,它为1的那些位上,1的个数必定是奇数,抑或之后一定还是1。 我之前知道出现两次这个题的解法,但是理解的不够深,以为抑或是关键,其实不是,出现了偶数次才是关键。理解了这点,推...
分类:其他好文   时间:2014-05-06 15:11:02    阅读次数:310
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!