摘要:
U,V能在最小(大)生成树上,当且仅当权值比它小(大)的边无法连通U,V. 两次最小割就OK了.---------------------------------------------------------------------#include#include#include#include#... 阅读全文
摘要:
建图很神奇..建完图其实就是裸的费用流了..--------------------------------------------------------------#include#include#include#include#include#include#define rep(i,n) f... 阅读全文
摘要:
这道题和 BZOJ 2763飞行路线几乎一模一样..然后飞行路线我是1A,这道题WA了4次,我开始怀疑我的智商了..--------------------------------------------------------------------#include#include#include... 阅读全文
摘要:
treap,算是模板题了...我中间还一次交错题...--------------------------------------------------------------------#include#include#include#include#include#define rep(i,n... 阅读全文