摘要:
没有SPJ时显然是不需要输出方案的。不需要输出方案很好做,先把边扩展(因为会往下流),然后求最大独立集,最大独立集=n-最小点覆盖,因为其是最大独立集的补集。如何求最小点覆盖呢?毕竟我写过最大权闭合子图的:http://www.51nod.com/Challenge/Problem.html#!#p 阅读全文
posted @ 2019-06-08 17:06
hfctf0210
阅读(212)
评论(0)
推荐(0)
摘要:
挂链式hash:https://www.luogu.org/problemnew/show/P3823 最小表示法:https://www.luogu.org/problemnew/show/P1368 KMP:https://www.luogu.org/problemnew/show/P3375 阅读全文
posted @ 2019-06-08 11:15
hfctf0210
阅读(204)
评论(0)
推荐(0)
摘要:
A 太难了,一半时间刚这题还没做出来,简直自闭了。实际上分两种情况,一种很简单直接放,另一种就是要0,0,…,0,1,2,…,n,然后直接贪心,显然我是把情况判断错误一直没调出来。 #include <bits/stdc++.h> using namespace std; const int N=2 阅读全文
posted @ 2019-06-08 10:39
hfctf0210
阅读(312)
评论(0)
推荐(0)

浙公网安备 33010602011771号