码迷,mamicode.com
首页 >  
搜索关键字:scala set map list    ( 131561个结果
nefu 627 剪纸游戏
题目:给定一个n*m大的纸张,上面表明了每块上的字母,在其背后给定了对应位置的字母的value,在最后给出需要剪出来的剪纸的字母序列。 方法:暴力搜索。 代码: #include #include #include #include using namespace std; char map[502][502]; int Map[502][502]; int vis[502][502...
分类:其他好文   时间:2014-05-05 12:53:36    阅读次数:338
codeforces A. Array题解
Vitaly has an array of n distinct integers. Vitaly wants to divide this array into three non-empty sets so as the following conditions hold: The product of all numbers in the first set is less ...
分类:其他好文   时间:2014-05-03 23:51:19    阅读次数:621
自定义 cell 的小总结
一. 使用xib封装一个view的步骤新建一个xib文件描述一个view的内部结构(假设叫做PLMTgCell.xib)新建一个自定义的类(自定义类需要继承自系统自带的view, 继承自哪个类, 取决于xib根对象的Class)新建类的类名最好跟xib的文件名保持一致(比如类名就叫做PLMTgCel...
分类:其他好文   时间:2014-05-03 23:30:34    阅读次数:443
oracle11.2.0.3.0 RAC aix7100-02-02-1316 crs-4124,crs-4000错误问题解决
原因:在测试机上首次安装oracle11G RAC,安装完成后正常使用,过了一段时间后重启节点1测试是否可以自启动,解决节点1没有自启动,手工启动也无法启动过程:在节点一上运行:# pwd/u01/grid/bin# ./crsctl start crsCRS-4124: Oracle High A...
分类:数据库   时间:2014-05-03 23:29:37    阅读次数:905
codeforces A. TL 题解
Valera wanted to prepare a Codesecrof round. He's already got one problem and he wants to set a time limit (TL) on it. Valera has written n correct solutions. For each correct solution, he knows it...
分类:其他好文   时间:2014-05-03 16:53:51    阅读次数:364
ORA-01925:maximum of 80 enabled roles exceeded
ORA-01925:maximum of 80 enabled roles exceeded...
分类:其他好文   时间:2014-05-03 15:55:33    阅读次数:296
ORA-00349: failure obtaining block size for '+fra_grp01_d
ORA-00349: failure obtaining block size for '+fra_grp01_d...
分类:其他好文   时间:2014-05-03 15:50:04    阅读次数:311
Leetcode:Subsets 求数组的所有子集
Given a set of distinct integers, S, return all possible subsets. Note: Elements in a subset must be in non-descending order.The solution set must not contain duplicate subsets. For exa...
分类:其他好文   时间:2014-05-03 15:47:53    阅读次数:289
Hadoop初学指南(8)--MapReduce中的Combiner操作
本文主要介绍了MapReduce中的Combiner操作。在MapReduce的执行步骤中,我们一共分了8步,其中Map中的最后一步规约操作就是今天要讲的Combiner。首先看一下前文中的计数器:我们可以发现,其中有两个计数器:Combineoutputrecords和Combineinputrecords,他们的计数都是0,这是..
分类:其他好文   时间:2014-05-03 15:00:55    阅读次数:323
[Redis]python连接redis
只是看看能不能成功使用python操作redis,redis具体的数据结构和使用会在以后学习。安装连接redis的包pipinstallredis本地已经在6379端口启动了redis服务。In[1]:importredis In[2]:r=redis.StrictRedis(host=‘localhost‘,port=6379,db=0) In[3]:r.set(‘foo‘,‘bar‘) Out[3]:Tru..
分类:编程语言   时间:2014-05-03 14:38:32    阅读次数:405
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!