码迷,mamicode.com
首页 >  
搜索关键字:sample    ( 5142个结果
A sample printer of nested lists
def print_list(the_list,indent=False,level=0): for each_line in the_list: if isinstance(each_line,list): print_list(each_line,indent,level+1) else: if...
分类:其他好文   时间:2015-03-04 20:57:53    阅读次数:133
CodeForces 385C Bear and Prime Numbers 素数打表
第一眼看这道题目的时候觉得可能会很难也看不太懂,但是看了给出的Hint之后思路就十分清晰了Consider the first sample. Overall, the first sample has 3 queries.The first query l?=?2, r?=?11 comes. Y...
分类:其他好文   时间:2015-03-04 20:38:09    阅读次数:154
hdu 4185 二分图匹配
题意用1*2的木板覆盖矩阵中的‘#’,(木板要覆盖的只能是‘#’),问最多能用几个木板覆盖将#抽象为二分图的点,一个木板就是一个匹配,注意最后结果要除以2Sample Input16.......##....##.......#.....##......Sample OutputCase 1: 3 ...
分类:其他好文   时间:2015-03-04 11:02:17    阅读次数:168
git 本地提交后如果让服务器上的GIT 自动更新拉取
Q:最近配了个服务器,用的GIT,本地提交后服务器必须再拉取一下才能更新出来。。求个提交后自动更新的方法A:最佳工具 git hookpost-update.sample 改名为post-update然后加几行简单的代码就能实现你的需求了例:gitdir=/****cd $gitdirgit che...
分类:其他好文   时间:2015-03-01 19:44:18    阅读次数:141
POJ2386 Lake Counting 图DFS
找出有多少个”水洼”(W的联通块)Sample Input10 12 W……..WW. .WWW…..WWW ….WW…WW. ………WW. ………W.. ..W……W.. .W.W…..WW. W.W.W…..W. .W.W……W. ..W…….W.Sample Output3解题思路DFS代码#include #include #incl...
分类:其他好文   时间:2015-03-01 14:30:23    阅读次数:159
gvgai framework 搭建
简要介绍了gvgai框架的搭建和其中两个Sample AI。
分类:其他好文   时间:2015-03-01 06:44:54    阅读次数:249
Zookeeper(3.4.5)配置 - 伪集群模式
1. 准备Java运行环境,需要安装Java1.6或更高版本的JDK。2. 下载ZooKeeper的稳定版本zookeeper-x.x.x.tar.gz,将其解压,约定目录名称为%ZK_HOME%3. 配置文件zoo.cfg,将%ZK_HOME%/conf目录下的zoo_sample.cfg文件重命...
分类:其他好文   时间:2015-03-01 01:29:39    阅读次数:293
iframe嵌入腾讯地图全景
来源:http://lbs.qq.com/javascript_v2/case-run.html#sample-pano-xifu http://api.map.soso.com/doc_v2/guide-pano.html直接上代码: xx.html代码:全景 -->
分类:其他好文   时间:2015-02-28 20:02:58    阅读次数:1146
可视化grape swagger-ui
swagger-docs : https://github.com/richhollis/swagger-docsswagger-docs-sample:https://github.com/richhollis/swagger-docs-sample/blob/master/README.mdsw...
分类:其他好文   时间:2015-02-28 18:32:29    阅读次数:253
Reducejoin sample
示例文件同sample join analysis 之前的示例是使用map端的join.这次使用reduce端的join. 根据源的类别写不同的mapper,处理不同的文件,输出的key都是studentno.value是其他的信息同时加上类别信息。 然后使用multipleinputs不同的路径注...
分类:其他好文   时间:2015-02-28 18:20:34    阅读次数:151
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!