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 lx865712528 at 2014-07-15 14:21:19 on Problem 1743
In Reply To:各位的程序几乎都是错的 Posted by:Tune at 2013-03-28 08:48:38
9 1 1 1 1 1 1 1 1 1 输出5是因为计算同组中sa的max值和min值之差与二分长度k的判断有问题。应该写成
if(samax-samin>k) return true;

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