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 |
为什么不等式化简以后影响答案?In Reply To:剪枝只剪一个点即可:即使当前层高度为1,也不能比已经找到的最优更优 Posted by:nenu10_chengyy at 2011-07-17 11:35:24 > 2*leftLolume/r+currentS>=min 请问,为什么我把r乘过去就WA?(2*leftLolume+currentS*r>=min*r) 这么写AC: if ( (n-currentn)*2/lastr >= (ans-currents) ) return ; 这么写WA: if ( (n-currentn)*2 >= (ans-currents) *lastr ) return ; Followed by: Post your reply here: |
All Rights Reserved 2003-2013 Ying Fuchen,Xu Pengcheng,Xie Di
Any problem, Please Contact Administrator