状压 DP。
by Vamilio @ 2024-09-20 09:34:47
@[wflhx2011](/user/759976) 树可以 $O(n)$ 做,图应该只能状压 DP
by liyixin0514 @ 2024-09-20 09:42:02
@[wflhx2011](/user/759976) ![](https://cdn.luogu.com.cn/upload/image_hosting/eqq5wgud.png)
拓扑序计数是难的,应该只能状压。
by __ryp__ @ 2024-09-20 10:09:11
@[Vamilio](/user/1395112) @[liyixin0514](/user/542128) @[__ryp__](/user/723993) 能详细说一下吗?
by wflhx2011 @ 2024-09-20 10:43:46