Online Judge | Problem Set | Authors | Online Contests | User | ||||||
---|---|---|---|---|---|---|---|---|---|---|
Web Board Home Page F.A.Qs Statistical Charts | Current Contest Past Contests Scheduled Contests Award Contest |
Yeah! 1A 我的方法是这样的,先对所有串建Trie树,再通过Trie的查找确定所有串与串间的可达关系,存入邻接表,最后bfs。 不知有没有更好的方法。Followed by: Post your reply here: |
All Rights Reserved 2003-2013 Ying Fuchen,Xu Pengcheng,Xie Di
Any problem, Please Contact Administrator