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 lzqxh at 2010-09-20 01:05:49 on Problem 2528
网上看到n多人离散化弄错了。
正确做法是。离散化后数的l,跟 r 不能再表示单位长度了,而应该表示端点
就是
1 1
这个点应该用1~2表示
1 3
1 10
4 6
应该离散化成
1~2
3~4
1~5
其中数字表示一个端点而不是一单位长度,所有离散化都应该这样做

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