论文足足看了两天,这是成果: 1 #include 2 3 const int maxn = 1000000; 4 5 int n, a, b, c, root; 6 int Child[maxn][2]; 7 int Key[maxn], Size[maxn], Count; ...
分类:
其他好文 时间:
2015-04-22 20:16:43
阅读次数:
186
private string urlParamManager(JObject postArray, bool flag) { ArrayList keys = new ArrayList(); foreach (JToken child i...
分类:
编程语言 时间:
2015-04-22 20:07:24
阅读次数:
133
一、forking 进程通过fork产生的进程有以下几个特点:
是一个进程的克隆。
创建的进程独立于父进程单独存在。
线程在调用fork()那那点被复制执行。
在子线程中返回0。
在父线程中返回子线程的pid
子线程的PID不同于父线程。
二、代码示例#!/usr/bin/env pythonimport osdef child_process():
print "I am the chi...
分类:
编程语言 时间:
2015-04-22 14:02:16
阅读次数:
198
一. 漏洞简介CVE-2010-4258这个漏洞很有意思,主要思路是如果通过clone函数去创建进程,并且带有CLONE_CHILD_CLEARTID标志,那么进程在退出的时候,可以造成内核任意地址写0的bug。PoC代码利用了多个漏洞来达到权限提升的目的。二. 前置知识 (进程创建、退出)1.当f...
分类:
其他好文 时间:
2015-04-21 20:21:21
阅读次数:
163
简单的字典树题,首先简历字典树,在查找。
#include
using namespace std;
struct Tri
{
int v;
Tri* child[26];
} root;
void Init()
{
root.v=0;
for(int i=0;i<26;i++)
{
root.child[i]=NULL;
}
}
void CreateDic(ch...
分类:
其他好文 时间:
2015-04-21 09:46:41
阅读次数:
122
分析:字典树解决,注意节点里面只需要保存该点是否构成一个单词,和匹配类型的题有所区别;另外要注意重读打印。字典树效率高。
#include
using namespace std;
struct Tri
{
bool v;
Tri* child[26];
};
Tri* root;
void Init()
{
root->v=false;
for(int i=0;i<26;...
分类:
其他好文 时间:
2015-04-21 00:27:07
阅读次数:
148
如果是textview的textcolor属性设置成selecter,则需要这么写这个selecter:
注意,是android:color
如果是background属性,则需要这么写这个selecter:
注意,是android:drawable...
分类:
其他好文 时间:
2015-04-20 09:31:05
阅读次数:
214
以ArcEngine为例:mapControl = new AxMapControl();MapHost.Child = mapControl; //MapHost为WindowsFormHost控件((System.ComponentModel.ISupportInitialize)(this.....
My desperate journey with a human smuggler By Barat Ali Batoor When I was a child there was a toy where you could put square, round, triangular and st...
分类:
其他好文 时间:
2015-04-19 12:56:45
阅读次数:
225
AQtGui.QSplitterlets the user control the size of child widgets by dragging the boundary between the children. In our example, we show threeQtGui.QFra...
分类:
其他好文 时间:
2015-04-17 21:51:32
阅读次数:
231