要想属性可搜索,需要在在Model的rules 设定可以搜索的属性public function rules() | public function rules() { return [ [['id', 'date', 'type', 'blocked_time', 'create_ti...
分类:
其他好文 时间:
2015-08-14 21:07:03
阅读次数:
159
maven打包1:先在pom文件中添加下面配置 org.apache.maven.plugins maven-compiler-plugin 2.3.2 UTF-8 ...
分类:
其他好文 时间:
2015-08-14 21:07:34
阅读次数:
143
NSUBSTR - Substringsno tagsYou are given a string S which consists of 250000 lowercase latin letters at most. We define F(x) as the maximal number of ...
分类:
其他好文 时间:
2015-08-14 21:05:34
阅读次数:
228
DFS#include#include#includeusing namespace std;int knight[8][8];// 各点到起点的最短距离int x[8]={-2, -1, 1, 2, -2, -1, 1, 2};int y[8]={-1, -2, -2, -1, 1, 2, 2, ...
分类:
其他好文 时间:
2015-08-14 21:06:24
阅读次数:
199
在上一篇里,我们学习了“自主角色”的一些基本行为:寻找(seek)、避开(flee)、到达(arrive)、追捕(pursue)、躲避(evade)、漫游(wander)。这一篇将继续学习其它更复杂,更高级的行为。原作者:菩提树下的杨过出处:http://yjmyzz.cnblogs.com一、对象...
分类:
其他好文 时间:
2015-08-14 21:04:45
阅读次数:
248
最近有学生问到,能不能快速的向PPT一个页面里插入成百张图片,并让它们按统一大小的矩形排布到页面上。我写了,以下代码可以在第1页中按照指定横向和纵向矩形数目,填充指定路径下的图片。 1 Sub LoadPicToShape() 2 Dim mPageWidth As Double, mPag...
分类:
其他好文 时间:
2015-08-14 21:04:02
阅读次数:
153
1. nohup常见的nohup,用法比较简单,就不赘述了,可以参考相应的wiki百科。https://en.wikipedia.org/wiki/Nohup2. screenscreen也是常见的在shell中启动后台进程的方法。安装方法很简单:yum -y install screen。基本语法...
分类:
其他好文 时间:
2015-08-14 21:04:09
阅读次数:
122
题意:给出给出n个单词,要求判断这些单词能否接龙,规则像成语接龙一样,就是当前单词的尾字母为下一个单词的首字母。思路:看着像是欧拉通路相关的题目,但是重点就在于怎么抽象出来。刚开始想了半天没想明白,老想着一个单词作为一个顶点去了,就是没转过来。看了篇解题报告(http://blog.csdn.net...
分类:
其他好文 时间:
2015-08-14 21:05:38
阅读次数:
191
比系统自带的组件体积要小很多,而且支持进度条显示(在做播放器时,显示缓冲进度很有用哦),另外也支持三角形的音量调整显示原作者:菩提树下的杨过出处:http://yjmyzz.cnblogs.com使用示例: 1 package 2 { 3 import flash.display.Simpl...
分类:
其他好文 时间:
2015-08-14 21:02:31
阅读次数:
230
首先推荐两个博客网址:http://dongxicheng.org/structure/lca-rmq/http://scturtle.is-programmer.com/posts/30055.html[转]tarjan算法的步骤是(当dfs到节点u时): 1 在并查集中建立仅有u的集合,设置该集...
分类:
其他好文 时间:
2015-08-14 21:03:48
阅读次数:
171
找到最大的迭代次数串。参考迭代万亿最大数目,找到核心人物,我们可以扩展,找到最大的迭代次数串。基本思想是把反复次数最大记录下来。并记录起始位置。#include #include using namespace std;int mystrlen(char *str){ int sum(0); cha...
分类:
其他好文 时间:
2015-08-14 21:02:44
阅读次数:
108
ime Limit:500MS Memory Limit:32768KB 64bit IO Format:%lld & %lluDescriptionThe people of Mohammadpur have decided to paint each of their houses red, g...
分类:
其他好文 时间:
2015-08-14 21:02:55
阅读次数:
129
题意:给出点、边,判断是不是一棵树思路:问题是如何判断是不是树?我总结了一下,但不官方,正确性待验证。1.入度#include#includeusing namespace std;#define MAXN 50000int fa[MAXN];int a[MAXN];int in[MAXN];int...
分类:
其他好文 时间:
2015-08-14 21:01:55
阅读次数:
108
什么是等角投影(isometric)?原作者:菩提树下的杨过出处:http://yjmyzz.cnblogs.com刚接触这个概念时,我也很茫然,百度+google了N天后,找到了一些文章:[转载]等角(斜45度)游戏与数学 (原文链接:http://www.javaeye.com/articles...
分类:
其他好文 时间:
2015-08-14 21:01:16
阅读次数:
310
学了一早上倍增,感觉lca还是tarjan好写。poj1330 1 #include 2 #include 3 #include 4 #include 5 #define DEG 20//2^20 6 #define maxn 10010 7 using namespace std; 8 s...
分类:
其他好文 时间:
2015-08-14 21:04:02
阅读次数:
263
Problem DescriptionLike everyone, cows enjoy variety. Their current fancy is new shapes for pastures. The old rectangular shapes are out of favor; new...
分类:
其他好文 时间:
2015-08-14 21:02:19
阅读次数:
228
传送门DescriptionA kingdom has n cities numbered 1 to n, and some bidirectional roads connecting cities. The capital is always city 1.After a war, all th...
分类:
其他好文 时间:
2015-08-14 21:01:19
阅读次数:
123