#include
#include
#include
#include
#include
#include
using namespace std;
class Node
{
public:
bool vis;
int first;
Node()
{
vis=false;
first=-1;
}
};
template
class Edge
{
public:
int fr...
分类:
其他好文 时间:
2014-12-18 22:18:34
阅读次数:
194
html <!DOCTYPE?html>
<html>
<head>
<meta?charset="utf-8"?/>
<meta?http-equiv="X-UA-Compatible"?content="IE=Edge,chrome=1.0"?/>
<title>canvas</title>
<script?type="text/javascript"?src="http...
分类:
Web程序 时间:
2014-12-16 15:25:51
阅读次数:
170
经验证,原来ddx、ddy这两个操作,在forward rendering与deferred rendering中存在着很微妙的语义区别。在forward rendering中,GPU shader会自动地判断其2x2区域是否仅有部分落在当前绘制的三角面所覆盖的interpolate范围内。而在dr...
分类:
其他好文 时间:
2014-12-11 06:45:18
阅读次数:
342
#include #include #include #include #include #include using namespace std;#define INF 0xffffffff#define maxn 1000005struct Edge{ int w, e;};int Use...
分类:
其他好文 时间:
2014-12-08 21:04:37
阅读次数:
118
#include
#include
#include
using namespace std;
struct edge {
int begin;
int end;
int cost;
};
bool cmp(edge a, edge b)
{
if (a.cost < b.cost)
return true;
return false;
}
int findSet(in...
分类:
编程语言 时间:
2014-12-08 09:21:00
阅读次数:
202
1.怎么调试程序在linux下,我们通常用gcc来编译链接程序,用gdb来调试程序。在用gcc生成程序的时候,用-g选项来使程序可以调试:test@test-ThinkPad-Edge-E420s:~/gdb$ gcc -g -Wall gdbtest.c -o gdbtest然后在用如下命令调试程...
分类:
数据库 时间:
2014-12-08 00:34:19
阅读次数:
365
排序的题从来没有搞懂过
#include
#include
#include
#include
using namespace std;
#define N 3001
struct node {
int s, e;
}edge[N];
int a[N];
int main() {
int n;
while(cin >> n) {
...
分类:
其他好文 时间:
2014-12-07 19:10:12
阅读次数:
155
Canny方法被许多人认为是拿来做边缘检测的最佳的方法。在维基百科上有关于Canny方法的比较详细的介绍:http://en.wikipedia.org/wiki/Canny_edge_detector所以下面只是简单地提一下,因为暂时没有充裕的时间去阅读OpenCV实现Canny的源代码。Cann...
分类:
其他好文 时间:
2014-12-07 16:23:29
阅读次数:
215
简单的tarjan#include #include #include #include #define N 10010#define M 20010#define C 2001000using namespace std;struct edge{ int v,c; int next;}City[M...
分类:
其他好文 时间:
2014-12-06 16:45:23
阅读次数:
187