摘要:
想象一下,要搞掉一个植物,必须先搞掉另一些植物……我们可以发现这是一个最大权闭合子图的问题。 最大权闭合子图的话,太空飞行计划问题是一个入门题,可以一看。 然而我们手玩一下样例就会惊恐地发现,保护关系 出现了环 。 比如说: 从 i 到 j 的箭头是说要搞 i 就要先搞 j,这是为了和最大权闭合子图 阅读全文
posted @ 2018-01-16 16:39
poorpool
阅读(145)
评论(0)
推荐(0)
摘要:
其实,只用考虑某一行能否放到某一行就行了 cpp include include include using namespace std; int T, n, a[205][205], hea[405], cnt, ans, lnk[405]; bool vis[405]; struct Edge{ 阅读全文
posted @ 2018-01-16 08:29
poorpool
阅读(127)
评论(0)
推荐(0)