CodeForces 343D(树链剖分+线段树)
Mad scientist Mike has constructed a rooted tree, which consists of n vertices. Each vertex is a reservoir which can be either empty or filled with water.
The vertices of the tree are numbered from 1 ...
原创
2020-01-27 20:57:23 ·
1398 阅读 ·
2 评论