题目描述
题解
这题目就是p
实际上就是问有没有不同的t条路径从1走到n,然后路径的最大值最小
二分显然,二分出mid之后,s->1,T;n->t,T,然后对于每一条边直接连,容量为1
需要注意的是这题是无向边
代码
#include<algorithm>
#include<iostream>
#include<cstring>
#include<cstdio>
#include<cmath>
#include<queue>
using namespace std;
#define N 210
#define E 200005
#define inf 2000000000
int n,m,T,s,t,Max,maxflow,ans;
struct data{
int x,y,z;}e[E];
int tot,point[N],nxt[E],v[E],remain[E];
int deep[N],last[N],num[N],cur[N];
queue <int> q;
void addedge(int x,<