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 yygy at 2023-04-18 16:16:11 on Problem 3521
先确定哪些是street
可以通过反面入手
非street有一个端点是只属于当前线段的。
然后对street按照关键交点进行拆分成小线段,也即最短路模型中的边
对于每一个小线段判断哪一个个方向是可以走的。
最后再跑一次最短路。

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