Time Limit: 2000MS Memory Limit: 32768K Total Submissions: 24788 Accepted: 12922 Description A power network consists of nodes (power stations, consumers and dispatchers) connected by power transport lines. A node u may be supplied with an amou…
最近学了下最大流算法,大概思想算是懵懵懂懂了,现在想把模板记录下来,以备后面深刻学习之用. #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[…