Given a string, find the length of the longest substring without repeating characters. For example, the longest substring without repeating letters fo...
分类:
其他好文 时间:
2015-05-06 06:53:51
阅读次数:
135
/*题目:古典问题:有一对兔子,从出生后第3个月起每个月都生一对兔子,小兔子长到第三个月 后每个月又生一对兔子,假如兔子都不死,问每个月的兔子总数为多少? */#includeint main(void){ int array[20] = {1, 1}; int i = 0; fo...
分类:
编程语言 时间:
2015-05-05 19:26:14
阅读次数:
107
转自http://blog.csdn.net/carefree31441/article/details/4857546使用Struts2,配置一切正常,使用常用tag也正常,但是在使用标记时,发现控制台总是输出警告信息,警告信息内容如下: 警告: No configuration found fo...
分类:
其他好文 时间:
2015-05-05 18:51:59
阅读次数:
190
【参考】http://www.cnblogs.com/samlin/p/Tesseract-OCR.htmlhttps://code.google.com/p/tesseract-ocr/wiki/TrainingTesseract3【注意点】1.生成box时,注意文件名要一致,如要生成bdi.fo...
分类:
其他好文 时间:
2015-05-05 12:01:39
阅读次数:
128
在任性的提高代码质量里面,上期小弟提到了关于代码质量最基本的问题:代码规范那么在这一期里,小弟会写一下关于MVC的简单使用,那么废话不多说,一会儿直接上代码Model类:我们先创建几个属性来弄一下吧,这里如果有某种类型多种状态,请用枚举来弄
#import<Foundation/Fo..
分类:
其他好文 时间:
2015-05-04 15:49:40
阅读次数:
108
Rest Parameters:In ES5, when you don't know how many paramters will be passed in, you can use arguments:let sum = function(){ let result = 0; fo...
分类:
其他好文 时间:
2015-05-01 19:50:49
阅读次数:
157
调用首页产品可选参数如下 New = 1, Hot = 2, Best = 3, Special = 4, Featured = 5, Other = 6 #fo...
分类:
其他好文 时间:
2015-05-01 11:50:31
阅读次数:
132
Given a string, find the length of the longest substring without repeating characters. For example, the longest substring without repeating letters fo...
分类:
其他好文 时间:
2015-04-30 15:36:25
阅读次数:
135
题意:
把编号为1到n的珠子,串成手环,要求任意两个相邻的珠子和都为质数;
思路:
数据量只有16,打个质数表,直接dfs搜就行了;
#include
#include
#include
using namespace std;
int vis[32];
int viss[20];
int res[20],n;
void init() {
vis[1] = 1;
fo...
分类:
其他好文 时间:
2015-04-27 16:51:54
阅读次数:
139