就两个操作: 一个find(int a,int b); 在find的同时进行路径压缩 一个unio(int a,int b); 里面调用find,看祖先是否相同;模板Code:hiho:1066,无间道并查集 1 #include 2 #include 3 #include 4 #incl...
分类:
其他好文 时间:
2014-10-19 15:31:42
阅读次数:
223
code forces 148D Bag of mice (概率DP) ——black的专栏——waShaXiu...
分类:
其他好文 时间:
2014-10-19 14:24:25
阅读次数:
235
1.Loop循环(成功) // the code inside the loop //插入Loop 中的代码 2.在WordPress的第一篇文章中插入Google广告 // Insert your Google AdSense code here 你同样可以改变 count值来让广...
分类:
其他好文 时间:
2014-10-19 14:17:19
阅读次数:
205
Code Style包含两个方面:代码清理,代码规范化。代码清理能够參考:http://www.ibm.com/developerworks/cn/opensource/os-eclipse-clean/http://jiajun.iteye.com/blog/287803代码清理过程:进入ecli...
分类:
系统相关 时间:
2014-10-19 14:11:08
阅读次数:
259
详见
C++开发的论坛系统 - BBS
当然你也可以直接进入下载地址:Fetch_source_code_release_vse2008_v1.2.1.7z
目前先暂存在百度云上,近期会放入github
当前版本的代码使用的标准C/C++在Windows上开发,使用的是Visual C++ Express 2008编译
如有问题可加入QQ群:117399430
------------...
分类:
编程语言 时间:
2014-10-19 11:37:12
阅读次数:
207
generator自动生成mybatis的xml配置、model、map等信息:1、下载mybatis-generator-core-1.3.2.jar包。 网址:http://code.google.com/p/mybatis/downloads/list?can=3&q=Product%3DGe...
分类:
移动开发 时间:
2014-10-19 10:08:55
阅读次数:
396
1.首先在code.h中查看PyCodeObject的struct 1 typedef struct { 2 PyObject_HEAD 3 int co_argcount; /* #arguments, except *args */ 4 int co_nlo...
分类:
编程语言 时间:
2014-10-19 09:02:53
阅读次数:
287
View Code·用来判断:查询以当前词为前缀的词有多少个。
分类:
其他好文 时间:
2014-10-19 01:19:59
阅读次数:
162
cocos2dx 3.2版对cocos code ide支持已经相当棒了,不过话说,编辑器用起来感觉没有sublime顺手支持cocos code ide已经支持创建lua项目了,可是默认创建的项目是不支持自定义原生代码了,那可咋办呢。开源就是好,从他的模板里面把相关的所有c++代码全部弄出来,加入...
分类:
其他好文 时间:
2014-10-19 00:00:23
阅读次数:
473
1、当strs为空,直接输出“”2、当strs中含有“”,直接输出“”3、strs[0]的最长长度由最短公共长度l决定(code line:15) 1 class Solution: 2 # @return a string 3 def longestCommonPrefix(sel...
分类:
编程语言 时间:
2014-10-18 23:47:06
阅读次数:
270