Online JudgeProblem SetAuthorsOnline ContestsUser
Web Board
Home Page
F.A.Qs
Statistical Charts
Problems
Submit Problem
Online Status
Prob.ID:
Register
Update your info
Authors ranklist
Current Contest
Past Contests
Scheduled Contests
Award Contest
User ID:
Password:
  Register

我来说说。。。

Posted by IceKingdom at 2009-06-01 22:11:09 on Problem 3580 and last updated at 2009-06-12 15:42:53
In Reply To:splay竟然超时了。这题有什么特别需要注意的吗? Posted by:AllwaysLoser at 2009-04-25 14:37:17
你代码太长,我不想看。。。
我AC了 Rank 1,也是用的Splay

一个是。。。要注意REVOLVE中的那个 T 可以很大,也可能为负。要取模。
在一个。。。删除了一个子树(包括REVOLVE和DELETE)里面的那个,一定要记得Splay,顺带把路径上面的节点更新掉。。。
记录标记时,当前节点的值与标记无关,标记只是用来下传的,所以ADD要改三个量。
数据范围 int 是可以的

Followed by:

Post your reply here:
User ID:
Password:
Title:

Content:

Home Page   Go Back  To top


All Rights Reserved 2003-2013 Ying Fuchen,Xu Pengcheng,Xie Di
Any problem, Please Contact Administrator