https://www.luogu.com.cn/problem/P2053 看起来可以 dp,不过每个人修每个车地代价并不相同。 于是可以二分图建模。 #include #include using namespace lastweapon; int main() { #ifndef ONLINE_JUDGE freopen("in.txt", "r", stdin); //freopen("o…
https://www.luogu.com.cn/problem/P2053 看起来可以 dp,不过每个人修每个车地代价并不相同。 于是可以二分图建模。 #include #include using namespace lastweapon; int main() { #ifndef ONLINE_JUDGE freopen("in.txt", "r", stdin); //freopen("o…
讨论
登录后参与讨论
还没有评论,来说第一句吧。