Codeforces 1076E - Vasya and a Tree - 树状数组题解链接https://lucien.ink题目链接http://codeforces.com/contest/1076/problem/E题意给你一棵有根树,有 $m$ 次操作,每次操作为 v d x,代表着把以 $v$ 为根深度不超过 $d$ 的所有点的权值都加上 $x$,问所有操作都进行完之后,每个点的...
Codeforces 1080F - Katya and Segments Sets - 可持久化线段树题解链接https://lucien.ink题目链接https://codeforces.com/contest/1080/problem/F题目It is a very important day for Katya. She has a test in a programming cl...
Codeforces 1080E - Sonya and Matrix Beauty - Manacher题解链接https://lucien.ink题目链接https://codeforces.com/contest/1080/problem/E题目Sonya had a birthday recently. She was presented with the matrix of siz...
题目链接http://acm.hdu.edu.cn/showproblem.php?pid=6393题目Problem DescriptionChika is elected mayor of Numazu. She needs to manage the traffic in this city. To manage the traffic is too hard for her. So ...
题目链接:http://exam.upc.edu.cn/problem.php?id=5556题目:题目描述Consider a square map with N × N cells. We indicate the coordinate of a cell by (i, j), where 1 ≤ i, j ≤ N . Each cell has a color either white...