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

写给TLE的朋友

Posted by ljfljf2006 at 2009-09-02 20:39:15 on Problem 1925
我是用DP做的。
一开始把坐标放在最外层循环,然后枚举在该坐标之后的所有building,得到下一个坐标点。TLE。
后来换成把building放在外层循环,然后根据建筑物高度枚举可选的坐标点范围,ac。

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