1、yuminstallpcrepcre-devel-y#支持rewrite重写功能2、yum-yinstallopensslopenssl-devel#支持https功能3、useraddnginx-s/sbin/nologin-M#添加用户4、tarzxfnginx-1.6.2.tar.gzcdnginx-1.6.2./configure\--user=nginx--group=nginx\--prefix=/application/nginx-1.6.2\--with..
分类:
其他好文 时间:
2015-08-15 18:31:49
阅读次数:
104
Whatisthemodifiedpoplarfilmfacedplywood?Thisfilmfacedplywoodisthenewstyleconcreteformworkpanelwhichhasthesuperioritylikesmoothsurface,largeformat,lightweight,highstrength,highresistanceandcanreducetheadvantagesoftwoplastering,highturnoverfrequencyetc.Inaddi..
分类:
其他好文 时间:
2015-08-15 18:31:00
阅读次数:
105
ISPBGP试验试验文档下载<下载后,把后缀名改为pdf>http://down.51cto.com/data/20824541-BGP选路规则发生选路的前提:没有同步问题,下一条且可达!1-1MEDMED生成:1:本地network方式生成的BGP条目,会带上IGP的metric。会传给所有邻居。2:如果从IBGP邻居学习到一条BGP条目..
分类:
其他好文 时间:
2015-08-15 18:32:28
阅读次数:
266
一、实例变量可见度可见度特点public实例变量可以在类的外部和内部操作protected实例变量只能在该类和其子类内操作默认private实例变量只能在该类内访问内部:相应类的@implementation和@end之间@interfacePerson:NSObject{@publicNSString*_name;@protectedNSString*_gender;i..
分类:
其他好文 时间:
2015-08-15 18:32:03
阅读次数:
99
获取屏幕的大小
代码如下
DisplayMetrics dm = new DisplayMetrics();
getWindowManager().getDefaultDisplay().getMetrics(dm);
int screenWidth = dm.widthPixels;
int screenHeigh = dm.heightPixels;...
分类:
其他好文 时间:
2015-08-15 18:29:30
阅读次数:
107
//用于定义主要的对象
typedef uint16_t CLBeaconMajorValue;
//用于定义最不主要的对象
typedef uint16_t CLBeaconMinorValue;
//下面是三种初始胡iBeacon的初始化方法。
//通过NSUUID符号来初始化 那两个都是通配符
- (instancetype)initWithProximityUUID:...
分类:
其他好文 时间:
2015-08-15 18:28:45
阅读次数:
362
进入Activity时,里面有EditText,则会自动调起软键盘,为了解决此问题,方法时在注册的时候加上如下代码...
分类:
其他好文 时间:
2015-08-15 18:29:24
阅读次数:
117
链接:点击打开链接
题意: 当x=10,f(x)=a0*f(x-1)+a1*f(x-2)+a2*f(x-3)+ …… +a9*f(x-10),求f(k)%m
代码:#include
#include
#include
using namespace std;
struct node{
long long m[10][10];
};
long long m;
node P={0,0...
分类:
其他好文 时间:
2015-08-15 18:27:34
阅读次数:
109
题意:
给出n个点和m次操作,操作有三种;
1.连接两个点;
2.删除两个点之间的连接;
3.查询两个点是否连通;
保证任何时刻图为一个森林;
n
题解:
LCT模板题,看起来LCT是个好东西;
LCT是一个用数据结构来维护一个支持动态加边删边的森林;
内部实现是用多个Splay来维护树上的重链,用Splay间的边维护树上的轻边;
这里的定义与树剖不同了,重边...
分类:
其他好文 时间:
2015-08-15 18:29:13
阅读次数:
172
Song Jiang's rank list
Time Limit: 2000/1000 MS (Java/Others) Memory Limit: 512000/512000 K (Java/Others)
Total Submission(s): 653 Accepted Submission(s): 323
Problem Description
《Sh...
分类:
其他好文 时间:
2015-08-15 18:28:13
阅读次数:
126
链接
题解链接:http://www.cygmasot.com/index.php/2015/08/15/hdu_5381/
题意:
给定n长的序列
下面n个数给出这个序列
m个询问
下面m行给出询问的区间。
对于一个询问,输出这个区间内的任意子段的gcd 和。
思路:
因为一个数的gcd只会不变或下降,下降一次至少减半,下降至多32次,所以处理出每个数连续相同的gcd的区间。
然后暴力跑莫队。
#pragma comment(linker, "/STACK:1...
分类:
其他好文 时间:
2015-08-15 18:28:30
阅读次数:
173
J - Product
Crawling in process...
Crawling failed
Time Limit:3000MS
Memory Limit:0KB 64bit IO Format:%lld & %llu
Submit
Status
Description
Product
...
分类:
其他好文 时间:
2015-08-15 18:26:41
阅读次数:
143
How Many Maos Does the Guanxi Worth
Time Limit: 2000/1000 MS (Java/Others) Memory Limit: 512000/512000 K (Java/Others)
Total Submission(s): 847 Accepted Submission(s): 322
Problem Des...
分类:
其他好文 时间:
2015-08-15 18:26:09
阅读次数:
132
题意:
直线上有一排n个弹力装置,每个弹力装置会将绵羊弹到下ki个弹力装置处;
如果没有了则绵羊被弹飞。。
问每个绵羊被弹了几次弹飞;
可能会修改弹力装置的k值;
n
题解:
裸的LCT吧;
所以下面的启发式合并Splay是啥鬼;
有人说这题边有向,和无向边不一样;
然而有个卵区别,把终点作为根不就有向了吗!
反正切了上一题这一题也不难吧;
维护个size之后,把终...
分类:
其他好文 时间:
2015-08-15 18:26:26
阅读次数:
215
3224: Tyvj 1728 普通平衡树
Time Limit: 10 Sec Memory Limit: 128 MB
Submit: 4350 Solved: 1769
[Submit][Status][Discuss]
Description
您需要写一种数据结构(可参考题目标题),来维护一些数,其中需要提供以下操作:
1. 插入x数
2. 删除x数(若有多个相同的数...
分类:
其他好文 时间:
2015-08-15 18:27:48
阅读次数:
136
Problem Description
The reflected binary code, also known as Gray code after Frank Gray, is a binary numeral system where two successive values differ in only onebit (binary digit). The reflected b...
分类:
其他好文 时间:
2015-08-15 18:26:59
阅读次数:
127
Description
A sequence of N positive integers (10 < N < 100 000), each of them less than or equal 10000, and a positive integer S (S < 100 000 000) are given. Write a program to find the minimal ...
分类:
其他好文 时间:
2015-08-15 18:27:35
阅读次数:
153