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 |
第一次AC自动机,,居然1A,,纪念一下..每次状态转移需要判断是否构成了单词..构成就不要计算可达状态数.... 与AC自动机的区别就是没有失败时不要去管失败转移的指针.. 最后计算不是终结状态的节点的可达状态数和.. Followed by: Post your reply here: |
All Rights Reserved 2003-2013 Ying Fuchen,Xu Pengcheng,Xie Di
Any problem, Please Contact Administrator