摘要:
例题 "洛谷P1894" 分析: 裸题,牛栏作为一个点集,牛作为另一个,牛喜欢牛栏则从牛向牛栏连一条边跑匈牙利就得了,邻接表开大点 代码: include define MAXN (2000+5) using namespace std; inline int read(){ int cnt=0,f 阅读全文
摘要:
题目链接: "WOJ1583" 题目分析: 大水题……我就来水个题解 倒序扫,单调栈维护单减序列,每个对象的答案是栈里它下面那个元素 代码: include define MAXN (1000000+5) using namespace std; inline int read(){ int cnt 阅读全文