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

我把两两线段的交点都求出来了,成为一张图,然后按照规则在图中走了一遍。官方数据跑了我2秒钟。主要慢在建图那一步,要花O(常数 * N^2)的时间。

Posted by ImLazy at 2006-12-10 20:27:35 on Problem 1963
In Reply To:我硬走超时了。有什么特殊的算法或方法吗? Posted by:ImLazy at 2006-12-10 00:25:33


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