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 |
前者AC 后者CE - -#In Reply To:附上CE程序 Posted by:allen4053040allen at 2010-06-08 11:01:39 double distance(double e1x, double e1y, double e2x, double e2y) { return sqrt((e1x - e2x) * (e1x - e2x) + (e1y - e2y) * (e1y - e2y)); } //以下就不行!!! /* double distance(P e1, P e2) { return sqrt((e1.x - e2.x) * (e1.x - e2.x) + (e1.y - e2.y) * (e1.y - e2.y)); } */ Followed by:
Post your reply here: |
All Rights Reserved 2003-2013 Ying Fuchen,Xu Pengcheng,Xie Di
Any problem, Please Contact Administrator