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 farui at 2004-07-15 21:14:36 on Problem 1151
小地图最多n(n<=100)块
用每个小地图的4边所在的直线作网格
将整个平面抛分成不大于(2n*2n<=40000)的网格,
每个格要么被探索过,要么没有
枚举枚格格,判断是否属于某张小地图
时间复杂度O(n^3)
在n<=100时是可以接受的。

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