Background
If thou doest well, shalt thou not be accepted? and if thou doest not well, sin lieth at the door. And unto thee shall be his desire, and thou shalt rule over him.
And Cain ta...
分类:
其他好文 时间:
2015-04-22 09:41:23
阅读次数:
199
Description
You are given a graph with N nodes and M edges.
Then every time you are required to add an additional edge with weight Wi connecting the node Ai and Bi in the graph, and then calculat...
分类:
其他好文 时间:
2015-04-22 09:40:45
阅读次数:
140
驱动LED灯
首先加入头文件#include
#include
#include
#include
#include
#include
#include
#include <asm/io....
分类:
其他好文 时间:
2015-04-22 09:40:18
阅读次数:
259
考察优先队列,以及对队列的一系列操作
#include
#include
int n;
using namespace std;
struct stu
{
int num,po;
friend bool operatory.num;
return x.po<y.po;
}
};
pri...
分类:
其他好文 时间:
2015-04-22 09:42:30
阅读次数:
113
php是用来写接口的,经常调试需要用到抓包,电脑本地抓包,很多人都会,但是手机抓包呢?现在给大家介绍下手机抓包的方式
首先
先下载Fiddler,自己可以去google找下
然后安装打开
最后保存 重启fiddler
然后运行cmd 输入ipconfig查看自己的ip地址
假设的电脑ip地址是192.168...
分类:
其他好文 时间:
2015-04-22 09:39:46
阅读次数:
185
最近要开始做三维重建,需要使用opencv 和 openGL,第一次使用OpenGL,当然要从装glut库来开始。
glut 库文件下载地址如下:http://download.csdn.net/detail/hyqsong/8618163
安装步奏如下:
1.将glut.h,放在vs2013安装目录的include下,新建一个GL目录(没有的话):例如我的路径是: C:\Program F...
分类:
其他好文 时间:
2015-04-22 09:40:56
阅读次数:
237
使用循环队列的三帧帧差法
帧差法是背景减图法中的一种,只不过是帧差法不需要建模,因为它的背景模型就是上一帧的图,所以速度非常快。对于帧差法的”双影”现象,有人提出来了三帧差法。其原理如下所示:
1. 由I(t) - I(t-1)得到前景图 F1
2. 由I(t+1) - I(t)得到前景图 F2
3. F1 ∩ F2得到前景图 F3
...
分类:
其他好文 时间:
2015-04-22 09:40:00
阅读次数:
164
欢迎使用Markdown编辑器写博客本Markdown编辑器使用StackEdit修改而来,用它写博客,将会带来全新的体验哦:
Markdown和扩展Markdown简洁的语法
代码块高亮
图片链接和图片上传
LaTex数学公式
UML序列图和流程图
离线写博客
导入导出Markdown文件
丰富的快捷键
快捷键
加粗 Ctrl + B
斜体 Ctrl + I
引用 Ctrl...
分类:
其他好文 时间:
2015-04-22 09:41:38
阅读次数:
114
上一篇blog文写到怎么安装gllu库,并给出了例子来验证OpenGL能否正常使用,但是一编译就出现问题:error
LNK1104: 无法打开文件“glut32.lib”
其实就是vs项目的配置问题,可以在项目属性中,VC++目录下,库目录包含相应glut32.lib的目录即可(就是一开始配置时复制过去的路径,包含上即可解决编译问题)
??...
分类:
其他好文 时间:
2015-04-22 09:40:16
阅读次数:
114
DEP绕过ROP(ret2lib)技术总结样本空间测试环境
操作系统:windows xp sp3
工具:immunity debugger
样本源码: #include
#include
#include char shellcode[]=
"\xFC\x68\x6A\x0A\x38\x1E\x68\x63\x89\xD1\x...
分类:
其他好文 时间:
2015-04-22 09:40:56
阅读次数:
295
Rochambeau
Time Limit: 5000MS
Memory Limit: 65536K
Total Submissions: 2092
Accepted: 733
Description
N children are playing Rochambeau (scissors-rock-cloth) game wi...
分类:
其他好文 时间:
2015-04-22 09:38:16
阅读次数:
150
True Liars
Time Limit: 1000MS
Memory Limit: 10000K
Total Submissions: 2221
Accepted: 685
Description
After having drifted about in a small boat for a couple of days, ...
分类:
其他好文 时间:
2015-04-22 09:39:27
阅读次数:
145
题目链接:http://acm.zju.edu.cn/onlinejudge/showProblem.do?problemId=3758
题面:
Guess the Price
Time Limit: 1 Second Memory Limit: 32768 KB
In the television program "Shopping Street...
分类:
其他好文 时间:
2015-04-22 09:37:38
阅读次数:
191
该公共方法类一般建立在com.xxx.util包下面
package com.dgh.util;
import java.util.Map;
import org.apache.struts2.interceptor.SessionAware;
/**
*
* 获得session
* @author wangcunhuazi
*/
public class BaseAction im...
分类:
其他好文 时间:
2015-04-22 09:39:35
阅读次数:
134
dp...
分类:
其他好文 时间:
2015-04-22 09:36:51
阅读次数:
88
Parity game
Time Limit: 1000MS
Memory Limit: 65536K
Total Submissions: 6767
Accepted: 2616
Description
Now and then you play the following game with your friend. Your...
分类:
其他好文 时间:
2015-04-22 09:36:52
阅读次数:
404
1.题目描述:点击打开链接
2解题思路:本题利用欧拉函数的性质暴力搜索求解。首先,根据
phi(n)=pk11(p1?1)?pk22(p2?1)?pk33(p3?1)....可知,n中的所有素因子p必须满足phi(n)%(p-1)==0这一条件。因此可以事先将所有这样的素数找出来,然后在这些素数的基础上进行暴力搜索,来枚举哪些素数用与不用。如果用了,还要枚举所有的合法的使用次数。这看上去时间...
分类:
其他好文 时间:
2015-04-22 09:36:41
阅读次数:
130