摘要: #include#include#include#include#include#include#define N 1100#includeusing namespace std;int pre[N],indegree[N];int find(int x) {if(pre[x]!=x)pre[x]=... 阅读全文
posted @ 2013-12-03 21:14 HYDhyd 阅读(131) 评论(0) 推荐(0) 编辑
摘要: http://www.cnblogs.com/newpanderking/archive/2012/10/18/2729566.html#include#include#include#includeusing namespace std;const int N=11000;vectorlink[N... 阅读全文
posted @ 2013-12-03 17:06 HYDhyd 阅读(144) 评论(0) 推荐(0) 编辑
摘要: #include#include#include#define inf 0x3fffffff#define N 300int map[N][N];char s[N][N];int ss[N],tt[N],mark[N],lx[N],ly[N];struct node{int x,y;}man[N],... 阅读全文
posted @ 2013-12-03 00:39 HYDhyd 阅读(133) 评论(0) 推荐(0) 编辑
摘要: #include#include#define N 400#define inf 0x7fffffffint Max(int a,int b ) {return a>b?a:b;}int Min(int a,int b) {return a>b?b:a;}int map[N][N],lx[N],ly... 阅读全文
posted @ 2013-12-03 00:04 HYDhyd 阅读(118) 评论(0) 推荐(0) 编辑