D. Arpa's weak amphitheater and Mehrdad's valuable Hoses 分组背包模板题
摘要:
http://codeforces.com/problemset/problem/742/D 并查集预处理出所有关系。 一开始的时候,我预处理所有关系后,然后选择全部的时候,另起了一个for,然后再判断。 这样是不对的。因为这样使得同一组里面可能选择了两次。 3 0 2 1 2 3 1 1 3 #i 阅读全文
posted @ 2017-01-20 20:18 stupid_one 阅读(141) 评论(0) 推荐(0) 编辑