/** \brief poj 3253
*
* \param date 2014/8/8
* \param state AC
* \return memory 1124K time 125ms
*
*/
#include
#include
#include
#include
using namespace std;
struct number
{
//int x;...
分类:
其他好文 时间:
2014-08-08 21:33:06
阅读次数:
291
设置好内部状态,然后依据不同的函数作为行为模式,进行状态转换。有点像Finite Automata算法,两者的思想是一样的。会Finite Automata,那么这个设计模式就非常easy了。#pragma once#include #include #include #include enum S...
分类:
其他好文 时间:
2014-08-08 17:35:16
阅读次数:
197
#salt ?‘*‘ ?state.sls ? httpd 这个命令会先在目录/srv/salt下找httpd.sls(yml语法格式编写的)文件,若:有就安装文件内容执行,若没有的话就继续找/srv/salt/httpd目录下init.sls,找到了安装文件内容执行,没...
分类:
其他好文 时间:
2014-08-08 13:00:46
阅读次数:
288
Flex如何处理二义性模式:1、词法分析器匹配输入时匹配尽可能多的字符串2、如果两个模式都可以匹配的话,匹配在程序中更早出现的模式上下文相关的记号flex提供起始状态(start state)的概念,可以动态地开启和关闭针对特定模式的识别,对于处理上述上下文相关的情况比较有用。Flex词法分析器中的...
分类:
其他好文 时间:
2014-08-07 18:41:21
阅读次数:
373
1、body里面的内容2、引入jquery.ui.min.js和他的样式3.js代码如下 4、返回JSON的数据如下 { "state": 1, "data": { "10013": { "id": "10013", ...
分类:
Web程序 时间:
2014-08-07 18:12:10
阅读次数:
271
非连续子串匹配题,直接模拟
/** \brief poj 1936
*
* \param date 2014/8/5
* \param state AC
* \return memory 804k time 0ms
*
*/
#include
#include
#include
using namespace std;
const int MAXN=100000;
cha...
分类:
其他好文 时间:
2014-08-07 13:15:20
阅读次数:
166
其语法如下:RAISERROR({msg_id|msg_str|@local_variable}{,severity,state}[,argument[,...n]])[WITHoption[,...n]]简要说明一下:第一个参数:{ msg_id | msg_str | @local_variab...
分类:
数据库 时间:
2014-08-07 12:15:59
阅读次数:
249
服务器:192.168.2.122root@2236:~# mdb -k> ::spaADDR STATE NAME ffffff02dfaea000 ACTIVE p3wayffffff02e38c0000 ACTIVE p98 //选取存储池 p98 作为调试对象ffffff02e7fb3000...
分类:
数据库 时间:
2014-08-06 22:28:42
阅读次数:
392
html 代码: 1 2 3 pool: {{ d['pool']}} 4 5 state: {{ d['state']}} 6 errors: {{ d['errors'] }} 7 scan: {{ ''.join(d['sca...
分类:
Web程序 时间:
2014-08-06 17:33:51
阅读次数:
246