Online JudgeProblem SetAuthorsOnline ContestsUser
Web Board
Home Page
F.A.Qs
Statistical Charts
Problems
Submit Problem
Online Status
Prob.ID:
Register
Update your info
Authors ranklist
Current Contest
Past Contests
Scheduled Contests
Award Contest
User ID:
Password:
  Register

此题虽然很水,但是有几点还是要注意。。

Posted by 0943041192 at 2011-02-16 01:35:50 on Problem 1657
一:注意计算时绝对值。最好是使用如下的方式:
		x = fabs(start[0]-goal[0]);
		y = fabs(start[1]-goal[1]);
二:注意目标位置和起始位置可能相同。
三:注意公式的判定,很简单。

Followed by:

Post your reply here:
User ID:
Password:
Title:

Content:

Home Page   Go Back  To top


All Rights Reserved 2003-2013 Ying Fuchen,Xu Pengcheng,Xie Di
Any problem, Please Contact Administrator