摘要:
Codeforces Round #680 E. Team-Building(可撤销并查集) Codeforces Round #680 (Div. 2, based on Moscow Team Olympiad) 题意:给n个点与m个边与k种颜色,每个点都有k中的一种颜色,要求对每对颜色,若该对 阅读全文
摘要:
Codeforces Round #681 (Div. 2, based on VK Cup 2019-2020 - Final) 传送门 B 题意:01串,消去连续的1费用为a,将一个0变成1费用为b,问消除所有1的最低费用。 题解:对于每段连续1计算与前一个段的距离len,如果费用len*b<a 阅读全文