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 SOSCHINA at 2019-06-23 15:16:54 on Problem 3580
1.空间要开到200000以上,因为可能会有100000次insert导致RE。
2.0节点的MIN标记要初始化为INF,并且注意ADD标记不能下推给0节点、最小值-INF节点和最大值INF节点。
3.注意父子关系不能遗漏,特别是Insert的时候。本人因为在Insert的时候没有处理好导致无限循环TLE。
4.觉得每次操作过后一个一个修改size、min...非常繁琐,不如善用pushup省事省力。

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