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

Re:括号匹配 + 离散化也能做到32MS

Posted by applepi at 2011-04-09 00:34:07 on Problem 1177
In Reply To:Re:括号匹配 + 离散化也能做到32MS Posted by:bigrabbit at 2011-04-06 13:39:40
题解见这里:http://hi.baidu.com/billdu/blog/item/17afd4106aeab51eb9127b1b.html

首先对所有的横坐标进行离散化处理,然后把所有的横边向离散化的区间里面添加,括号匹配用来判断有多少个分离的区间,这样就能够得到“外露的”横边的长度,用同样的方法得到纵边的长度,相加即可。

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