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 5120223383 at 2023-07-21 19:21:23 on Problem 2528
In Reply To:离散化有问题的试试这组数据 Posted by:5120223383 at 2023-07-21 17:30:06
> 1
> 3
> 1 4
> 1 2
> 3 4
> ans=2是3的把间隔去了
> (从后往前不用间隔)
这个题貌似有点问题,如
1
3
1 10
1 4
7 10
这组数据最后答案应该是3,3个报纸都可以看到,但是我们刚刚在处理之前那组数据时
> 1
> 3
> 1 4
> 1 2
> 3 4
去掉了离散化里的间隔,导致现在程序的反馈是2.....不过却AC了这个题,看来这个题大抵是不用间隔的

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