码迷,mamicode.com
首页 >  
搜索关键字:number of islands    ( 27069个结果
check_jmx4perl 1.10 findDeadlockedThreads ERROR "Invalid number of operation arguments"
Hi,The problem is:$ check_jmx4perl --url http://localhost:8081/jolokia --mbean java.lang:type=Threading --operation findDeadlockedThreads --null no-de...
分类:其他好文   时间:2014-08-19 18:37:25    阅读次数:311
Maximum Subarray
Maximum SubarrayFind the contiguous subarray within an array (containing at least one number) which has the largest sum.For example, given the array[?...
分类:其他好文   时间:2014-08-19 18:12:55    阅读次数:279
POJ3077 Rounders
Rounders Time Limit: 1000MS   Memory Limit: 65536K Total Submissions: 7605   Accepted: 4931 Description For a given number, if greater than ten, round it to the nearest...
分类:其他好文   时间:2014-08-19 16:38:54    阅读次数:185
UVA - 12050 Palindrome Numbers
Description A palindrome is a word, number, or phrase that reads the same forwards as backwards. For example, the name "anna" is a palindrome. Numbers can also be palindromes (e.g. 151 or 753357)....
分类:其他好文   时间:2014-08-19 12:57:34    阅读次数:189
UVA - 11609 Teams (排列组合数公式)
In a galaxy far far awaythere is an ancient game played among the planets. The specialty of the game isthat there is no limitation on the number of players in each team, as long asthere is a captain i...
分类:其他好文   时间:2014-08-19 11:03:34    阅读次数:261
hdoj 1394 Minimum Inversion Number【线段树求逆序对】
#include #include #include using namespace std; const int N = 101000; int a[N]; struct Node { int l,r,num; }; Node tree[4*N]; void build(int l,int r,int o) { tree[o].l=l,tree[o].r=r; t...
分类:其他好文   时间:2014-08-19 11:03:14    阅读次数:222
异常处理
异常处理 一、预定义异常: Dup_val_on_index:试图向唯一索引列插入重复值,相当于建立了一个唯一索引 然后再向这个索引的列中插入一条重复的数据就会异常。 Invalid_cursors:试图进行非法的游标操作 Invalid_number : 试图将字符串转换为数字 no_data_found : select into 语句没有返回任何记录 Too_many_rows ...
分类:其他好文   时间:2014-08-19 09:27:03    阅读次数:210
UVA 10791 Minimum Sum LCM (数论)
LCM (Least Common Multiple) of a set of integers is defined as the minimum number, which is a multiple of all integers of that set. It is interesting to note that any positive integer can be expressed...
分类:其他好文   时间:2014-08-18 23:38:13    阅读次数:275
poj1351Number of Locks(记忆化搜索)
题目链接: 传送门 思路: 这道题是维基百科上面的记忆化搜索的例题。。。 四维状态dp[maxn][5][2][5]分别表示第几根棒子,这根棒子的高度,是否达到题目的要求和使用不同棒子数,那么接下来就是状态转移了。。。要用到位运算判断以前是否这种高度的棒子用到没。。。那么这个问题就解决了。。。 题目: Number of Locks Time Limit:...
分类:其他好文   时间:2014-08-18 23:36:33    阅读次数:264
10624 - Super Number
题目链接 题意:给出n到m的范围,求出一个数在前i位数组成的数字能被i整除,如果存在输出这个数,如果不存在,输出-1. 思路:回溯,每次放第i位,然后判断是否符合题意。这题踩着时间过去的2.6s(看了下别人的题解,可以减少取模次数来节省时间)。 代码: #include #include #include #include using namespace ...
分类:其他好文   时间:2014-08-18 22:05:53    阅读次数:303
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!