码迷,mamicode.com
首页 >  
搜索关键字:csu 1553 good subseq    ( 2571个结果
设置安卓设备屏幕方向,平板为横屏,手机为竖屏
http://stackoverflow.com/questions/9627774/android-allow-portrait-and-landscape-for-tablets-but-force-portrait-on-phoneHere's a good way usingresource...
分类:移动开发   时间:2014-08-08 17:43:16    阅读次数:779
树的点分治 (poj 1741, 1655(树形dp))
poj 1655:http://poj.org/problem?id=1655题意: 给无根树, 找出以一节点为根, 使节点最多的树,节点最少。题解:一道树形dp,先dfs 标记 所有节点的子树的节点数。 再dfs 找出以某节点为根的最大子树,节点最少。 复杂度(n)/***Good Luck***...
分类:其他好文   时间:2014-08-08 12:25:25    阅读次数:246
hdu 4416 Good Article Good sentence (后缀数组)
题目大意: 给出一个A串和很多个B串,求出A中有多少个子串,是所有的B中没有出现的。 思路分析: 后缀数组的作用很容易的求出来整个串中不同的子串个数。 现在要求的是A中不同的,且在B中没有出现过的。 先把AB 串全部连接,跑一遍suffix array。然后求出有多少个不同的子串。 然后再单独用B 串跑 suffix array。再求出单独在B 中有多少个不同的 子串。...
分类:其他好文   时间:2014-08-07 23:16:25    阅读次数:257
Is VXLAN the Answer to the Network Virtualization Question?
Network virtualization is a growing topic of interest and for some good reasons as networks scale to meet the challenges of cloud computing they are r...
分类:Web程序   时间:2014-08-06 22:23:52    阅读次数:452
CSU - 1446 Modified LCS
Description Input Output Sample Input 3 5 3 4 15 3 1 10 2 2 7 3 3 100 1 1 100 1 2 Sample Output 4 3 50 题意:求两个等差序列相同的元素个数 思路: 首先我们可以假设得到解...
分类:其他好文   时间:2014-08-06 10:26:51    阅读次数:220
字符串操作
//求一句话里单词的个数 前面空格后面非空格 计数器加1//she is a good girl ====5个int CountWords(char c[]){ int word=0; int sum=0; char *p=c; for (;*p!='\0';p++) ...
分类:其他好文   时间:2014-08-06 01:29:40    阅读次数:196
HDU 4888 Redraw Beautiful Drawings(最大流+判最大流网络是否唯一)
Problem DescriptionAlice and Bob are playing together. Alice is crazy about art and she has visited many museums around the world. She has a good memo...
分类:Windows程序   时间:2014-08-05 22:12:00    阅读次数:447
javascript构造函数强制使用new
如果有时候我们忘记对构造函数使用new的话,构造函数的this将指向window function Person(){ this.name = 'Julie'; } var good_moring = Person(); console.log(good_...
分类:编程语言   时间:2014-08-05 15:27:19    阅读次数:229
HDU 4760 Good FireWall 完善Trie题解
本题乍看像是线段树之类的区间操作,不过因为只是需要查找ip的前缀,故此其实是使用Trie来做。 这里的Trie使用到了Delete函数,这是个Trie函数中最难的函数了,当然要使用数组记录的方法水掉,也是可以的。这里不水,给出delete函数。 考点难点: 1 Trie的操作函数的灵活运用,主要难点是delete函数的灵活运用 2  在叶子节点所有的group id, 删除的时候要注意,不...
分类:其他好文   时间:2014-08-05 11:13:09    阅读次数:296
[Good for enterprise] How to monitor GFE?
Q: What is Good for enterprise (GFE)?A: A mobile messaging software, allow enterprise internal email synchronize to user's mobile devices, support cli...
分类:其他好文   时间:2014-08-04 21:13:38    阅读次数:321
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!