摘要:
传送门 "洛谷" Solution 直接跑最小割板子就好了。 代码实现 cpp include include include include include include include include include using namespace std; define ll long lo 阅读全文
摘要:
传送门 "洛谷" Solution 比较巧妙啊! 考虑这个只有同意和不统一两种,所以直接令$s$表示选,$t$表示不选,然后在朋友直接建双向边就好了。 代码实现 cpp include using namespace std; const int N=500010,Inf=1e9+10; int f 阅读全文
摘要:
传送门 "洛谷" Solution 大致思想同 "这个——洛谷1231" 代码实现 cpp include using namespace std; const int N=500010,Inf=1e9+10; int front[N],cnt,s,t,n; struct node { int to 阅读全文