摘要:
###题目 P3144 [USACO16OPEN]关闭农场Closing the Farm_Silver ###思路 先全部读入利用并查集倒着处理 Code #include<iostream> #include<cstring> #include<cstdio> #include<string> 阅读全文
posted @ 2019-09-02 08:44
yu__xuan
阅读(237)
评论(2)
推荐(1)
摘要:
###题目 P1455 搭配购买 ###思路 并查集+01背包,用并查集将捆绑在一起购买的价格和价值都转移到一个上去,然后做一遍01背包。 Code #include<iostream> #include<cstring> #include<string> #include<cstdio> #inc 阅读全文
posted @ 2019-09-02 08:08
yu__xuan
阅读(249)
评论(2)
推荐(0)

浙公网安备 33010602011771号