// poj 2421 prim/*最小生成树,用Prim算法有n个城镇,已知每两个城镇的距离,其中某些城镇之间的道路已经修好,要求用最少的路径修完剩下的城镇之间的路*/#include#define InF 2000int g[110][110],bz[110],low[110];int min,...
分类:
其他好文 时间:
2014-08-11 21:09:12
阅读次数:
237
输入:8 91 21 32 42 53 63 74 85 86 7// 图的BFS,使用C++队列#include #include #include using namespace std;#define N 10int g[N][N],bz[N],n,m;queue q;void BFS(in....
分类:
其他好文 时间:
2014-08-10 21:16:50
阅读次数:
247
#include #include#define N 10int g[N][N];int bz[N];int n,m ;void DFS(int cur){ int j; bz[cur]=1; printf("V%d",cur); for(j=1;j<=n ;j++ ) if(g[cur][j] ....
分类:
其他好文 时间:
2014-08-10 21:09:00
阅读次数:
253
解题报告
题目传送门
题意:
给一个字符串,要求,对于这个字符串空隔为k取字符对(k=0,1,2,3,4...)要求在相同的空隔取对过程汇总,整个字符串中没有一个相同字符对如:
ZGBZ:
间隔为0的字符对有: ZG、GB、BZ,三个均不相同
间隔为1的字符对有: ZG、 GZ,均不相同
间隔为2的字符对有: ZZ 仅有一个,不必比较。
这种字符串定义为...
分类:
其他好文 时间:
2014-08-09 21:33:09
阅读次数:
190
#include #include using namespace std;const int N=20;int g[N][N],bz[N]={0},n,flag=0;void bfs(int x){ int t,i;queue q;q.push(x); bz[x]=1;while (!q.emp....
分类:
其他好文 时间:
2014-08-08 11:57:36
阅读次数:
238
递归回溯代码#include using namespace std;int n,m, a[10];bool bz[3][10];void DFS(int k){ int i;if (k==n) { for ( i=0; i>n; DFS(0);return 0;}V...
分类:
其他好文 时间:
2014-08-03 17:52:45
阅读次数:
299
新建存储过程 USE?[数据库名]
GO
SET?ANSI_NULLS?ON
GO
SET?QUOTED_IDENTIFIER?ON
GO
ALTER???proc?[dbo].[p_basecheck](@dm?varchar(30),@mc?varchar(200),@bz?varchar(200),@RET?INT?OUT)????...
分类:
数据库 时间:
2014-07-25 00:10:14
阅读次数:
318
using System;using System.Collections.Generic;using System.Linq;using System.Web;namespace BZ.Web.QiYe.Handler{ /// /// Handler1 的摘要说明 /// ...
分类:
其他好文 时间:
2014-07-19 17:02:49
阅读次数:
168
转载:https://www.centos.bz/2011/10/linux-file-view-edit/cat 命令介绍cat 命令的原含义为连接(concatenate), 用于连接多个文件内容并输出到标准输出流中(标准输出流默认为屏幕)。实际运用过程中,我们常使用它来显示文件内容。如果您熟悉...
分类:
系统相关 时间:
2014-07-19 11:37:03
阅读次数:
270
ngrep 是grep(在文本中搜索字符串的工具)的网络版,他力求更多的grep特征,用于搜寻指定的数据包一: ngrep的安装 CentOS6.2 64位 wgethttp://nchc.dl.sourceforge.net/sourceforge/ngrep/ngrep-1.45.tar.bz....
分类:
其他好文 时间:
2014-07-18 20:18:11
阅读次数:
277