2018年9月19日

2018 ICPC青岛网络赛 B. Red Black Tree(倍增lca好题)

摘要: BaoBao has just found a rooted tree with n vertices and (n-1) weighted edges in his backyard. Among the vertices, of them are red, while the others ar 阅读全文

posted @ 2018-09-19 22:31 大桃桃 阅读(539) 评论(0) 推荐(0)

HDU 6118 度度熊的交易计划(最小费用最大流)

摘要: Problem Description度度熊参与了喵哈哈村的商业大会,但是这次商业大会遇到了一个难题:喵哈哈村以及周围的村庄可以看做是一共由n个片区,m条公路组成的地区。由于生产能力的区别,第i个片区能够花费a[i]元生产1个商品,但是最多生产b[i]个。同样的,由于每个片区的购买能力的区别,第i个 阅读全文

posted @ 2018-09-19 15:29 大桃桃 阅读(152) 评论(0) 推荐(0)

导航