随笔分类 - 贪心专题
基础算法
摘要:Maxim always goes to the supermarket on Sundays. Today the supermarket has a special offer of discount systems. There are m types of discounts. We ass
阅读全文
摘要:A. Sum in the tree A. Sum in the tree Mitya has a rooted tree with nn vertices indexed from 11 to nn, where the root has index 11. Each vertex vv init
阅读全文