随笔分类 - 树形DP
摘要:题目大意 A 国一共有 $n$ 个城市且有 $n 1$ 条双向道路,且任意两个城市都可以通过道路互相到达。 现在 B 国给出了两个城市的集合 $X,Y$,你需要摧毁若干条 A 国的道路,使得任意一个在 X 中的城市无法到达任何一个 Y 中的城市。 现在给定每条道路摧毁需要付出的代价,求一个代价之和最
阅读全文
摘要:传送门 Time Limit:1000MS Memory Limit:32768KB 64bit IO Format:%I64d & %I64u Description A school bought the first computer some time ago(so this computer
阅读全文

浙公网安备 33010602011771号