存边; 对于指针实现的邻接表:struct edge{ int from,next,to,w;}E[maxn];int head[maxn],tot=0;//head初始化为-1;void add(int x,int y,int z){ E[++tot].from=x;//头结点 E[tot].to...
分类:
其他好文 时间:
2014-10-27 10:38:08
阅读次数:
245
1、恢复被禁用邮箱:常规下在Exchange2010控制台恢复时没有提示报错,但从web界面打开时却提示邮箱被禁用。后来在Exchangemanagementshell下使用clean-mailboxdatabasedatabasename解决。实际操作截图如下::2、删除边缘传输服务器:先在Exchange2010shell下执行:Remove-Edge..
分类:
其他好文 时间:
2014-10-23 21:01:05
阅读次数:
142
题意 给你n个点 m条边 求最小生成树的权
这是最裸的最小生成树了
#include
#include
#include
using namespace std;
const int N = 55, M = 3000;
int par[N], n, m, ans;
struct edge{int u, v, w;} e[M];
bool cmp(edge a, edge b){return...
分类:
Web程序 时间:
2014-10-23 10:43:45
阅读次数:
229
>_ 5 6 using namespace cv; 7 using namespace std; 8 9 int edgeThresh = 1;10 Mat image, gray, edge, cedge;11 12 // define a trackbar callback13 void .....
分类:
其他好文 时间:
2014-10-22 23:22:34
阅读次数:
368
题意 给你农场的邻接矩阵 求连通所有农场的最小消耗
和上一题一样裸的最小生成树
#include
#include
#include
using namespace std;
const int N = 105, M = 10050;
int par[N], ans, n, m, t;
struct edge { int u, v, w;} e[M];
bool cmp(edge a, ...
分类:
Web程序 时间:
2014-10-22 11:02:47
阅读次数:
203
在linux下用c语言利用信号机制完成了一个弹球的小游戏,代码如下:
bounce.h
/* bounce.h */
/* some settings for the game */
#define BLANK ' '
#define DFL_SYMBOL 'o'
#define TOP_ROW 5
#define BOT_ROW 20
#define LEFT_EDGE...
分类:
系统相关 时间:
2014-10-21 12:27:14
阅读次数:
511
Recovery time is the minimum length of time an asynchronous control signal, for example, and preset, must be stable before the next active clock edge....
分类:
其他好文 时间:
2014-10-20 14:56:25
阅读次数:
298
#include
#include
using namespace std;
#define E 10000
#define V 100
struct Edge{
int to_node;
int edge_val;
int next_edge;
Edge(){}
Edge( int to, int val, int next ){...
分类:
其他好文 时间:
2014-10-20 11:46:20
阅读次数:
226
树的判定
时间限制:1000 ms | 内存限制:65535 KB
难度:4
描述
A tree is a well-known data structure that is either empty (null, void, nothing) or is a set of one or more nodes connected by directed edge...
分类:
其他好文 时间:
2014-10-17 09:23:24
阅读次数:
172
题目链接
题意: 判断城市是否全部能相通
思路:判断一张有向图是否强连通
代码:
#include
#include
#include
#include
using namespace std;
const int MAXN = 2005;
const int MAXM = MAXN * MAXN;
struct Edge{
int to, n...
分类:
其他好文 时间:
2014-10-16 20:30:03
阅读次数:
169