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 13107222 at 2009-11-18 11:23:37 on Problem 1899 and last updated at 2009-11-18 11:28:08
   (如图)在用并查集做时,如果j和k矩形都在i矩形前面;现在对i矩形进行考虑时(即以i矩形为下个父亲进行考虑),如果先遍历的是k,再是j矩形,则k矩形会被漏掉;

|——————————|    |————————|
|          |    |   k    |
|          |    |————————|   
|    j     |
|      |————————————————|  
|      |       i        |
|      |                |
|      |————————————————|  
|          |
|——————————|

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