最近学了下最大流算法,大概思想算是懵懵懂懂了,现在想把模板记录下来,以备后面深刻学习之用. #include<cstdio> #include<cstring> using namespace std; #define _clr(x, y) memset(x, y, sizeof (x)) #define Min(x, y) (x < y ? x : y) #define INF 0x3f3f3f3f #define N 210 int map[N][N]; int pre[…
题目链接:http://poj.org/problem?id=1273 Time Limit: 1000MS Memory Limit: 10000K Description Every time it rains on Farmer John's fields, a pond forms over Bessie's favorite clover patch. This means that the clover is covered by water for awhile and takes…