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

Re:我觉得离散化会有问题

Posted by punkcpp at 2008-07-29 20:23:37 on Problem 2528
In Reply To:Re:我觉得离散化会有问题 Posted by:dj4156003 at 2008-07-29 17:27:20
> 我的程序结果是3..你建树的时候左子树的终点和右子树的起点可以重叠..那样就不会错..
重叠的话,看下面这组数据:
3
1 10
1 5
6 10
正确答案应该是2

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