题意:给一串数字,在其间加入若干加号和一个等号,问使等式成立的方案总数if the digits serial is "1212", you can get 2 equations, they are "12=12" and "1+2=1+2".一看就是搜索,但是不太好写,还是参考了kuang神和这...
分类:
其他好文 时间:
2015-05-19 18:21:21
阅读次数:
196
循环嵌套:在外面的大循环里再套上小循环案列一、九九乘法表思路:九九乘法表就是在一个大循环里在套一个小循环,外面的大循环每循环一次,里面的小循环不能大于外面大循环的次数,定义外面大循环的循环次数是i,小循环是k,大循环总共循环9次,所以i小于等于9,k小于等于i案例二、打印各种图形1、正方形思路:打印...
分类:
其他好文 时间:
2015-05-19 18:18:37
阅读次数:
196
Throughout this Handbook we will be investing certain terms with specific meanings.在这本手册整个我们会定下某些条款具有特定的含义。Requiremen需求A required feature or function ...
分类:
其他好文 时间:
2015-05-19 18:18:34
阅读次数:
110
(function ($) { $.fn.Search = function (options) { var defaults = { inputid: "search", divid: "searchDiv", ...
分类:
其他好文 时间:
2015-05-19 18:17:10
阅读次数:
128
http://acm.hust.edu.cn/vjudge/problem/viewProblem.action?id=34870求n内的素数个数。 1 /* *********************************************** 2 Author : zch ...
分类:
其他好文 时间:
2015-05-19 18:17:50
阅读次数:
292
MyEclipse 导入项目之后 运行“Could not find main class. Program wll exit.”报错:bad version number in .class filejdk版本问题修改成一致Window --> Preferences -->Java --> co...
分类:
其他好文 时间:
2015-05-19 18:15:59
阅读次数:
158
Problem DescriptionTom and Jerry are playing a game with tubes and pearls. The rule of the game is:1) Tom and Jerry come up together with a number K.2...
分类:
其他好文 时间:
2015-05-19 18:15:53
阅读次数:
149
树状数组/前缀和 Orz lct1999 好神的做法。。。 先看下暴力的做法:对于区间[l,r],我们依次扫过去,如果这个数是第一次出现,那么我们种类数+1。 我们发现:区间中相同的几个数,只有最左边那个才对答案有贡献。 那么我们O(n)预处理一个next数组,满足a[i]=a[next[...
分类:
其他好文 时间:
2015-05-19 18:17:19
阅读次数:
126
------Java培训、Android培训、iOS培训、.Net培训、期待与您交流! -------运算符运算符是告诉编译程序执行特定算术或逻辑操作的符号。运算符的优先级表:注:同一优先级的运算符,运算次序由结合方向所决定。一、算术运算符算术运算符就是我们所学的加减乘除。如下表:算术运算表达式的结...
分类:
其他好文 时间:
2015-05-19 18:15:35
阅读次数:
157
Given a triangle, find the minimum path sum from top to bottom. Each step you may move to adjacent numbers on the row below.For example, given the fol...
分类:
其他好文 时间:
2015-05-19 18:15:53
阅读次数:
94
本篇随笔将详细的讲解Activity保存状态的概念,也就是saving activity state。一、Activity状态保持概念保存Activity的状态是非常重要的,例如我们在玩一个游戏的时候,突然来了一个电话,这个时候在接听完电话之后我们返回到游戏中,这个时候我们希望游戏还是之前那个进度,...
分类:
其他好文 时间:
2015-05-19 18:14:50
阅读次数:
109
import java.util.Hashtable;import java.util.Iterator;import java.util.Set;import javax.servlet.http.Cookie;import javax.servlet.http.HttpServletReques...
分类:
其他好文 时间:
2015-05-19 18:13:46
阅读次数:
160
改成:CvMemStorage* m_storage=cvCreateMemStorage(0);CvSeq * m_contour=0;cvFindContours( &IPlImage(img), m_storage, &m_contour, sizeof(CvContour), CV_RETR...
分类:
其他好文 时间:
2015-05-19 18:13:39
阅读次数:
176
一、PGA PROCESS GLOBAL AREA =====>私有的空间(专用)server process PGA is part of prcess private memory. heap information can be seen in x$ksmpp ...
分类:
其他好文 时间:
2015-05-19 18:12:56
阅读次数:
130
GridAction它有两个主要的子类Grid3DAction和TiledGrid3DAction,TiledGrid3DAction系列的子类中会有瓦片效果,如下图所示是Waves3D特效(Grid3DAction子类),如后图所示是WavesTiles3D特效(TiledGrid3DAction...
分类:
其他好文 时间:
2015-05-19 18:14:52
阅读次数:
161