说明我们很容易在pushScene中添加动画Director::getInstance()->pushScene(TransitionSlideInB::create(SCENE_TIME, scene));可是popScene没有提供动画Director::getInstance()->popSc...
分类:
其他好文 时间:
2014-07-06 17:09:29
阅读次数:
205
应该是今夜的世界杯前的最后一题了吧又是个区间更新-增减 区间查询-求和 类型的题目连废话都不想打上去了 有点烦那touch me 1 // 线段树 区间更新--增减 区间查询--求和 2 3 #include 4 using namespace std; 5 6 const in...
分类:
其他好文 时间:
2014-07-06 16:52:47
阅读次数:
128
今天收获还算可以把。。今天过了poj1258和poj1753.1258是一个红果果的最小生成树,写了个prim,用的邻接矩阵。当然邻接表不是很会用,回头会研究图算法,短期内会看的。关于prim算法,比较重要的就以下几个点。1.选取一个点,然后据此更新其他节点的low[]信息2.再执行n-1次操作,每...
分类:
其他好文 时间:
2014-07-06 16:46:19
阅读次数:
166
链接一直理解的最小覆盖圆就是外接圆。。原来还要分钝角和锐角。。。钝角的话就为最长边的中点,对于这题分别枚举一下外接圆以及中点的圆,判一下是不是在园外。 1 #include 2 #include 3 #include 4 #include 5 #include 6 #include ...
分类:
其他好文 时间:
2014-07-06 16:38:31
阅读次数:
231
如何判断系统是32位还是64位的linux系统某日,需要下载个安装包,忽然忘记了自己的系统是32位还是64位的系统了,一时想不起来怎么查看时32位还是64位,呵呵,随便百度下,就发现有好多方法,这里记录下,方便日后查询:第一种:12345[root@CentOS62~]# uname -mi686[...
分类:
系统相关 时间:
2014-07-06 16:27:31
阅读次数:
194
微软近期Open的职位:Location: China, BeijingDivision: Operations System Group Engineering Group OverviewOSG is delivering flagship products in Microsoft. Chin...
分类:
移动开发 时间:
2014-07-06 16:18:51
阅读次数:
307
Given an array of words and a lengthL, format the text such that each line has exactlyLcharacters and is fully (left and right) justified.You should p...
分类:
其他好文 时间:
2014-07-06 16:10:10
阅读次数:
138
Write a program to solve a Sudoku puzzle by filling the empty cells.Empty cells are indicated by the character'.'.You may assume that there will be on...
分类:
其他好文 时间:
2014-07-06 16:07:23
阅读次数:
204
Given a binary tree, find the maximum path sum.The path may start and end at any node in the tree.For example:Given the below binary tree, 1 ...
分类:
其他好文 时间:
2014-07-05 20:43:45
阅读次数:
246