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

请问下sample构建的走一步的矩阵表示什么意思?

Posted by gboystal at 2009-08-26 22:26:21 on Problem 2778 and last updated at 2009-08-26 22:26:49
通过构建ac自动机后,0(根)表示状态0,A表示状态1,走一步的矩阵如下:
[3 1]
[0 0]

[3 1]的3次幂就是[27 9],最后答案是27+9=36,
[0 0]          [0  0]                          

为什么这样做是对的呢。。。

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