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:怎么老WA啊!!!测试正确的啊。In Reply To:Re:怎么老WA啊!!!测试正确的啊。 Posted by:yaodanhua at 2008-08-24 09:22:53 > if(min>=(abs(g-a[i])*abs(g-a[i])+abs(h-b[i])*abs(h-b[i])+abs(j-c[i])*abs(j-c[i]))) > 把大于等于改大于试试吧?因为它说出现多个最小距离的时候选第一个,如果大于等于的话好像选的是最后一个 对啊,必须改成大于才对啊。 Followed by: Post your reply here: |
All Rights Reserved 2003-2013 Ying Fuchen,Xu Pengcheng,Xie Di
Any problem, Please Contact Administrator