hdu2222 字符串多模匹配算法 采用kuangbin模板#include #include
#include #include #include using namespace std;struct Trie{ int
next[500010][26],fail[500010],end[5...
分类:
其他好文 时间:
2014-05-19 08:36:17
阅读次数:
234
http://acm.hdu.edu.cn/showproblem.php?pid=3832
1 #include 2 #include 3 #include 4 #include 5 #include 6 #include 7 #include 8
#define maxn 1001...
分类:
其他好文 时间:
2014-05-18 20:36:07
阅读次数:
411
#include #include int main(/*int argc, char const
*argv[]*/){ void * target; time_t now = time(NULL); if(now & 1) target =
&&odd; else target = &&e...
分类:
其他好文 时间:
2014-05-18 20:27:53
阅读次数:
306
首先把贤哥封装好的解析文件和https://github.com/topfunky/hpple上下载的文件夹拖进工程里添加 libxml2.dylib 框架在
Header Search Paths 中添加 /usr/include/libxml2引入头文件YXHTML.h// 获取数据NSData...
分类:
移动开发 时间:
2014-05-18 20:27:32
阅读次数:
393
参考了本文:http://www.cnblogs.com/xulb597/archive/2012/07/05/2578562.htmlTrie.hpp#ifndef
TRIE#define TRIE#include "LinkedList.hpp"#include #include #includ...
分类:
编程语言 时间:
2014-05-18 20:16:03
阅读次数:
477
1 #include "windows.h" 2 #include "tlhelp32.h" 3
#include "iostream" 4 using namespace std; 5 6 #pragma
comment(lib,"kernel32.lib") 7 8 DWORD GetKe...
VC的控制台程序不会跟踪内存泄漏,如果需要调试控制台程序的内存情况,需要_CrtSetDbgFlag详细原理我也不太懂,我也是从网上摘过来的,直接帖代码//
内存泄漏跟踪#ifdef WIN32 #include #ifdef _DEBUG #define _CRTDBG_MAP_ALLOC ...
分类:
其他好文 时间:
2014-05-18 19:56:49
阅读次数:
260
#ifndef MAINFUNC_H#define MAINFUNC_H#include
#include #include #include //1. Get the numbers//2. Modify the expression like
(1+1*1)*(1-1); 1 represent...
分类:
其他好文 时间:
2014-05-18 19:54:02
阅读次数:
514
思路:枚举然后深搜,时间复杂度有点高。代码: 1 #include 2 #include 3
#include 4 #include 5 using namespace std; 6 int a[25]; 7 char c[25]; 8 int
flag; 9 int len;10 int judg...
分类:
其他好文 时间:
2014-05-18 19:51:19
阅读次数:
341
#include int main(void){ printf("hello
cnblogs!\n"); return 0;}
分类:
其他好文 时间:
2014-05-18 19:50:02
阅读次数:
245