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

给数据算出来是10的一些建议

Posted by zhenlingcn at 2017-07-17 15:53:34 on Problem 3669
stones[x][y]=min(stones[x][y],t)
我相信这是大多数人记录陨石坠落时间的方法,没毛病,但是要注意
stones[x+dir[i][0]][y+dir[i][1]]=min(stones[x+dir[i][0]][y+dir[i][1]],t)
临近点进行min判断的时候要用stones[x+dir[i][0]][y+dir[i][1]]
最开始我用的是stones[x][y],导致最后结果是10,修改后就没问题了。

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