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

Yeah! 1A 我的方法是这样的,先对所有串建Trie树,再通过Trie的查找确定所有串与串间的可达关系,存入邻接表,最后bfs。 不知有没有更好的方法。

Posted by alpc47 at 2009-08-07 00:17:41 on Problem 2647


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