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 1106100214 at 2012-07-23 06:12:42 on Problem 2528 and last updated at 2012-07-23 06:44:19
1.线段树节点千万不要动态申请删除,这样的话动态删超时不动态删内存很大(能过但或许哪一道题就要爆内存)
2.b1 = post(left); b2 = post(right); return b1 || b2;一定不能写成一句,短路表达式坑死你。
3.楼下那组所谓错误数据的正确答案应该是2 3 4.看题目的配图,1 4的意思是第1、2、3、4这四块砖都覆盖掉,只要画一下就能知道不是所谓3 3 4.
4.这道题数据有问题,正确的解决方案是离散化时给两个点间留一个空点。

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