| ||||||||||
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:SQ(computer[i].x-computer[p].x)+SQ(computer[i].y-computer[p].y))<=d,d也要平方吧,还有要小心溢出In Reply To:SQ(computer[i].x-computer[p].x)+SQ(computer[i].y-computer[p].y))<=d,d也要平方吧,还有要小心溢出 Posted by:frkstyc at 2006-03-22 22:44:08 d已经平方过了。 x,y的坐标最大是10000 x^2+y^2最大也就是10000^2+10000^2 好像没有溢出 frkstyc:能帮我看下是不是逻辑上有什么错吗? Followed by:
Post your reply here: |
All Rights Reserved 2003-2013 Ying Fuchen,Xu Pengcheng,Xie Di
Any problem, Please Contact Administrator