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:怎么老WA啊!!!测试正确的啊。 Posted by:fhyvenus at 2008-07-23 10:46:21 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