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:这个题目开始的时候WA了n 次, 但是后来在输入的时候,把l减1之后就可以过啊,但是不明白为什么要这样减个1

Posted by initial at 2007-09-07 19:14:06 on Problem 2528
In Reply To:这个题目开始的时候WA了n 次, 但是后来在输入的时候,把l减1之后就可以过啊,但是不明白为什么要这样减个1 Posted by:sas at 2006-12-08 16:37:12
线段树表示的是区间,而你注意题目中可能会出现k k这样的数据,而线段树中最小距离是1,把l减1当然可以解决这个问题了

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