上一页 1 ··· 7 8 9 10 11 12 13 14 15 ··· 18 下一页
  2016年3月12日
摘要: 网络流  将男女进行拆点,二分答案,同一个人之间建容量k的边,源汇分别向男女连mid的边,再根据喜欢不喜欢对男女进行连边,使如果不喜欢的话要走同一个人之间的那一条边,最后 观察一下是否满流。 阅读全文
posted @ 2016-03-12 23:01 xiyuedong 阅读(185) 评论(0) 推荐(0) 编辑
  2016年3月6日
摘要: 1 #include<cstdio> 2 #include<iostream> 3 #define N 10009 4 #define inf 100000 5 using namespace std; 6 int b[N],cnt,n,m,c[N],f[N][2],head[N],next[2*N 阅读全文
posted @ 2016-03-06 22:41 xiyuedong 阅读(343) 评论(1) 推荐(0) 编辑
摘要: 1 #include<cstdio> 2 #include<iostream> 3 #define M 100005 4 using namespace std; 5 int a[M],l[2*M],r[2*M],sum[M],n,m,p,ans; 6 int main() 7 { 8 scanf( 阅读全文
posted @ 2016-03-06 22:36 xiyuedong 阅读(147) 评论(0) 推荐(0) 编辑
摘要: 1 #include<iostream> 2 #include<cstdio> 3 #include<cmath> 4 #include<cstring> 5 using namespace std; 6 int n,m,T; 7 double ans=0; 8 bool mp[31][31],in 阅读全文
posted @ 2016-03-06 22:29 xiyuedong 阅读(125) 评论(0) 推荐(0) 编辑
  2016年3月4日
摘要: 1 #include<iostream> 2 #include<cstring> 3 #include<algorithm> 4 #include<cstdio> 5 using namespace std; 6 #define M 1000009 7 int head[M],cnt,next[M] 阅读全文
posted @ 2016-03-04 22:55 xiyuedong 阅读(180) 评论(0) 推荐(0) 编辑
摘要: 1 #include<cstdio> 2 #include<iostream> 3 #include<cstring> 4 using namespace std; 5 int a[3000],d[3000],n; 6 void cheng(int a1) 7 { 8 for(int i=1;i<= 阅读全文
posted @ 2016-03-04 22:52 xiyuedong 阅读(146) 评论(0) 推荐(0) 编辑
摘要: 1 #include<iostream> 2 #include<cstdio> 3 #include<algorithm> 4 #define ll long long 5 #define P 2147483648LL 6 using namespace std; 7 int n,m,w,K,H[2 阅读全文
posted @ 2016-03-04 22:49 xiyuedong 阅读(131) 评论(0) 推荐(0) 编辑
摘要: 1 #include<cstdio> 2 #include<iostream> 3 #include<cstring> 4 #define M 10001 5 #define inf 2139062143 6 using namespace std; 7 int cnt=1,sum,T,n,a,b, 阅读全文
posted @ 2016-03-04 22:37 xiyuedong 阅读(121) 评论(0) 推荐(0) 编辑
摘要: 1 #include<iostream> 2 #include<cstdio> 3 using namespace std; 4 int n,size,rt,kind,t1,t2; 5 long long ans; 6 int tr[80001][2],num[80001],fa[80001]; 7 阅读全文
posted @ 2016-03-04 22:21 xiyuedong 阅读(177) 评论(0) 推荐(0) 编辑
摘要: 1 #include<cstdio> 2 #include<iostream> 3 #include<cmath> 4 using namespace std; 5 int x[10008],y[10009],z[10008],f[10008],n,m,max1; 6 int main() 7 { 阅读全文
posted @ 2016-03-04 22:17 xiyuedong 阅读(138) 评论(0) 推荐(0) 编辑
上一页 1 ··· 7 8 9 10 11 12 13 14 15 ··· 18 下一页