
Link-Cut-Tree
文章平均质量分 87
SCUT_Pein
这个作者很懒,什么都没留下…
展开
-
HDU5002--Tree(LCT)
Problem DescriptionYou are given a tree with N nodes which are numbered by integers 1..N. Each node is associated with an integer as the weight.Your task is to deal with M operations of 4 type原创 2014-09-22 16:44:33 · 634 阅读 · 0 评论 -
2002: [Hnoi2010]Bounce 弹飞绵羊(分块)
Description某天,Lostmonkey发明了一种超级弹力装置,为了在他的绵羊朋友面前显摆,他邀请小绵羊一起玩个游戏。游戏一开始,Lostmonkey在地上沿着一条直线摆上n个装置,每个装置设定初始弹力系数ki,当绵羊达到第i个装置时,它会往后弹ki步,达到第i+ki个装置,若不存在第i+ki个装置,则绵羊被弹飞。绵羊想知道当它从第i个装置起步时,被弹几次后会被弹飞。为了使得游戏更原创 2015-09-21 10:39:27 · 756 阅读 · 0 评论