码迷,mamicode.com
首页 >  
搜索关键字:custom state    ( 10586个结果
UESTC 2014 Summer Training #18 Div.2
A.UVALive 6661 题意从1~N中选k个数,和为s的方案数 第一眼搜索,估计错状态量,又去yydp...浪费大量时间 数据很小的,状态数都不会超过2^N...直接dfs就过了//state二进制表示选取的数#include #include #include #include usi...
分类:其他好文   时间:2014-08-10 01:36:39    阅读次数:336
poj3253
/** \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
State Design Pattern 状态设计模式
设置好内部状态,然后依据不同的函数作为行为模式,进行状态转换。有点像Finite Automata算法,两者的思想是一样的。会Finite Automata,那么这个设计模式就非常easy了。#pragma once#include #include #include #include enum S...
分类:其他好文   时间:2014-08-08 17:35:16    阅读次数:197
saltstack中stae用法
#salt ?‘*‘ ?state.sls ? httpd 这个命令会先在目录/srv/salt下找httpd.sls(yml语法格式编写的)文件,若:有就安装文件内容执行,若没有的话就继续找/srv/salt/httpd目录下init.sls,找到了安装文件内容执行,没...
分类:其他好文   时间:2014-08-08 13:00:46    阅读次数:288
使用get_target_property判断Target是否存在
使用Cmake的add_custom_target建立自定义的Target后,必须将这个Target加入all依赖,否则生成的Makefile不会执行这个Target的内容。这样会有个问题,如果需要编译如下目录: 目录下有N个目录,这些目录下或是目录,或是文件,那么递归下去,就会有若干CMakeLists.txt,也就是说,会有若干个add_custom_target(all ...)的存在...
分类:其他好文   时间:2014-08-07 19:09:20    阅读次数:243
Fix: When installing msi, custom action about deleting registy key does not work
Problem description: The problem may happen when UAC is enabled, it is usually because of the insufficient right to delete the registry key. Solution:...
分类:其他好文   时间:2014-08-07 18:51:20    阅读次数:371
使用flex
Flex如何处理二义性模式:1、词法分析器匹配输入时匹配尽可能多的字符串2、如果两个模式都可以匹配的话,匹配在程序中更早出现的模式上下文相关的记号flex提供起始状态(start state)的概念,可以动态地开启和关闭针对特定模式的识别,对于处理上述上下文相关的情况比较有用。Flex词法分析器中的...
分类:其他好文   时间:2014-08-07 18:41:21    阅读次数:373
jquery ui autocomplete ajax返回数据自定义显示
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
u3d外部资源 打包与加载的问题
被坑了一下午,调bug,u3d外部加载资源一会可以,一会不行,始终找不到问题,最后快下班的时候,重新试了一下,原来是资源打包之前的文件名,和之后的加载资源名必须一样[MenuItem("Custom Editor/Build AssetBundle From Selection Twice")]st...
分类:其他好文   时间:2014-08-07 18:09:10    阅读次数:192
poj1936
非连续子串匹配题,直接模拟 /** \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
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!