Online Judge | Problem Set | Authors | Online Contests | User | ||||||
---|---|---|---|---|---|---|---|---|---|---|
Web Board Home Page F.A.Qs Statistical Charts | Current Contest Past Contests Scheduled Contests Award Contest |
Re:各位的程序几乎都是错的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: |
All Rights Reserved 2003-2013 Ying Fuchen,Xu Pengcheng,Xie Di
Any problem, Please Contact Administrator