Welcome, Guest!
Sign Up
Login
RSS
Clever Space
Friday, 11.22.2024
Main
»
2013
»
December
»
22
» [Hnoi2010]Bounce 弹飞绵羊
3:58 PM
[Hnoi2010]Bounce 弹飞绵羊
由于是LCT模板题,所以不发布在批量题解了。
讲几个坑点吧:
旋转的时候要把path-parent往较高的节点传。
及时更新splay中节点所属子树的节点数。
像这道题,cut—join一体化。
Code:
bounce
1
2
3
4
5
Views: 381 | Added by:
dhy0077
| Rating:
5.0
/
1
Total comments:
0
Only registered users can add comments.
[
Sign Up
|
Login
]
Site menu
Home page
Site info
Blog
Forum
Photo Albums
Chat Room
Voice Board
Our Stats
FAQ
Login form
Entries archive
2013 August
2013 September
2013 October
2013 November
2013 December
2014 January
2014 March
2014 April
2014 May
2014 June
2014 July
2014 August
2014 September
2014 November
Visitors
メタトレーダー
Calendar
«
December 2013
»
Su
Mo
Tu
We
Th
Fr
Sa
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31