最短路与次短路条数#include #include #define N 10005#define INF 0x3f3f3f3fstruct Edge{ int u,val,next;}e[2*N];int p[N],vis[N][2],d[N][2],cnt[N][2];void add(i...
分类:
其他好文 时间:
2014-08-14 19:39:29
阅读次数:
263
次短路与条数#include #include #define N 10005#define INF 0x3f3f3f3fstruct Edge{ int u,val,next;}e[2*N];int p[N],vis[N][2],d[N][2],cnt[N][2];void add(int ...
分类:
其他好文 时间:
2014-08-14 19:32:29
阅读次数:
197
一 sudo命令不能用
1 使用su切换到root用户,命令:
su
2 使用名:vim /etc/sudoers添加sudoer用户,命令:
vim /etc/sudoers
找到root=(ALL:ALL)ALL,在下面添加:
%你的用户名=(ALL)ALL
如果不想输入密码,可如下书写:
%你的用户名 ALL=(ALL) NOPASSWD: ALL
二 中文...
分类:
其他好文 时间:
2014-08-13 22:40:37
阅读次数:
297
class Edge { enum Type { inner, outer, flat } Piece parent; Type type; boolean fitsWith(Edge type) { }; // Inners & outer f...
分类:
其他好文 时间:
2014-08-12 06:51:13
阅读次数:
208
#include
#include
#include
#include
#include
#include
#include
#include
#include
#include
#include
#include
#include
using namespace std;
#define maxn 1000
#define INF 100000000
int edge[...
分类:
其他好文 时间:
2014-08-11 17:57:32
阅读次数:
197
原因源于:cooder上添加diff文件 要安装subversion ------------------------ tortoiseSVN只是一个subversion的客户端工具,subversion是开源的版本控制系统,包括客户端和服务端。服务端有CollabNetSubversio...
分类:
其他好文 时间:
2014-08-11 17:36:12
阅读次数:
196
HT for Web简称HT提供了涵盖通用组件、2D拓扑图形组件以及3D引擎的一站式解决方案,正如Hightopo官网所表达的我们希望提供:Everything you need to create cutting-edge 2D and 3D visualization. 这个愿景从功能...
分类:
其他好文 时间:
2014-08-11 08:29:50
阅读次数:
249
Problem H
Halum
Time Limit : 3 seconds
You are given a directed graph G(V,E) with a set of vertices and edges. Each edge (i,j) that connects some vertex i to vertex j has...
分类:
其他好文 时间:
2014-08-08 21:24:11
阅读次数:
570
本文出自:Svitter的Blog 以及 Github
图论Graph
8/8/2014 9:23:16 AM
图的基本概念
图的定义
Defination
图是由顶点集合(Vertex)及顶点间的关系集合(边Edge)组成的一种数据结构: > Graph=( V, E )
顶点Vertex
V = {x | x ∈ 某个数据对象}
边的集合Edge
...
分类:
其他好文 时间:
2014-08-08 16:05:56
阅读次数:
290
http://wiki.hudson-ci.org/display/HUDSON/Subversion+Release+ManagerThis plugin allows you to set up a job in Hudson for building specific revisions of...
分类:
其他好文 时间:
2014-08-08 12:30:25
阅读次数:
218