ICode9

精准搜索请尝试: 精确搜索
  • [USACO4.2]草地排水Drainage Ditches--最大流--EK2019-07-10 10:41:33

    Luogu 2740 Code: #include <bits/stdc++.h> using namespace std; #define maxn 210 #define maxm 210 const int inf=1<<30; int n,m,s,t,head[maxm],size=1,vis[maxm]; struct egde { int v,w,nxt; }e[maxn<<1]; struct node { int vi,eg; }pre[maxn&

  • POJ1149_PIGS(网络流/EK)2019-05-08 10:48:12

    PIGS Time Limit: 1000MS   Memory Limit: 10000K Total Submissions: 15721   Accepted: 7021 Description Mirko works on a pig farm that consists of M locked pig-houses and Mirko can't unlock any pighouse because he doesn't have the keys. Customer

  • 怎么证明权重不相同的加权无向图的最小生成树是唯一的 (图论)2019-04-05 21:44:21

    转自:https://blog.csdn.net/liangzhaoyang1/article/details/51602926     设G是所有边权均不相同的无向联通图。 证明一: 首先,易证图G中权值最小的边一定是最小生成树中的边。(否则最小生成树加上权值最小的边后构成一个环,去掉环中任意一条非此边则形成了另一个权值更小的生

专注分享技术,共同学习,共同进步。侵权联系[81616952@qq.com]

Copyright (C)ICode9.com, All Rights Reserved.

ICode9版权所有