题目链接:hdu 5745 La Vie en rose 题意: 给两个字符串 a 和 b ,b可以进行变换,规则是可以任意交换相邻两个字符的位置,但是不可以有交叉(例如3和4交换,5和6交换 互不影响,但是2和3,3和4就不可以)。求a中每一个位置能不能匹配b或b变换得到的子串。 题解: 考虑dp ...
分类:
其他好文 时间:
2017-07-30 17:11:26
阅读次数:
198
#include #include #include #define ll long long #define N 100010 using namespace std; ll ans,mod; int n,m; struct tree { int l,r; int mul_,sum_; long ... ...
分类:
其他好文 时间:
2017-07-30 17:09:54
阅读次数:
95
在平时运维工作中,经常需要用到LNMP应用框架。以下对LNMP环境部署记录下: 1)前期准备:为了安装顺利,建议先使用yum安装依赖库[root@opd ~]#yum install -y make cmake gcc gcc-c++ autoconf automake libpng-devel l ...
分类:
其他好文 时间:
2017-07-30 17:09:28
阅读次数:
178
今天改动项目里面測试给提的bug。有一个bug就是当点击UISearchBar的取消buttonUISearchBar回到原来位置时会发生偏差50像素左右的跳动,细致看看前面几个程序写的那个页面,也没有发现UISearchBar的代理方法-(void)searchBarCancelButtonCli ...
分类:
其他好文 时间:
2017-07-30 17:04:53
阅读次数:
436
A ring is compose of n circles as shown in diagram. Put natural number 1, 2, ..., n into each circle separately, and the sum of numbers in two adjacen ...
分类:
其他好文 时间:
2017-07-30 15:52:29
阅读次数:
176
算法笔记 模板: vector<int>g[N]; vector<int>edge[N]; int anc[20][N]; int deep[N]; int h[N]; void dfs(int o,int u,int w) { if(u!=o)deep[u]=deep[o]+1,h[u]=h[o] ...
分类:
编程语言 时间:
2017-07-30 15:47:27
阅读次数:
337
Problem D Game Accept: 145 Submit: 844Time Limit: 1000 mSec Memory Limit : 262144 KB Accept: 145 Submit: 844Time Limit: 1000 mSec Memory Limit : 26214 ...
分类:
其他好文 时间:
2017-07-30 15:42:55
阅读次数:
243
MySQL 实现调用外部程序和系统命令Refer:http://www.cnblogs.com/yunsicai/p/4080864.html1) Download lib_mysqludf_sys $ git clone https://github.com/mysqludf/lib_mysqlu ...
分类:
数据库 时间:
2017-07-30 14:59:25
阅读次数:
180