https://www.luogu.org/fe/problem/P3033 二分图最大独立集 注意输入的时候控制x1,y1,x2,y2的相对大小. #include<bits/stdc++.h> using namespace std; #define ll long long /* dinic begin */ const int MAXN=5000; const int MAXM=120000; //注意网络流要预留反向边 const int INF=0x3f3f3f3f; struct…
题目描述 Consider an N x N (1 <= N <= 100) square field composed of 1 by 1 tiles. Some of these tiles are impassible by cows and are marked with an 'x' in this 5 by 5 field that is challenging to navigate: . . B x . . x x A . . . . x . . x . . . . . x .…