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 guoshi3 at 2008-07-25 17:03:01 on Problem 3669
搜索的时候更新下第一次到每个点的时间a[x][y],如果现在时间大于a[x][y],这个点就不用去了.....
其实我也蛮笨的,居然没想到这个....后来实在忍不住,看了USACO的analysis.....

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