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

AC的有点迷糊

Posted by 584349486 at 2011-07-25 21:38:05 on Problem 2774
为什么直接扫描height数组一遍,找到最大的height(i)并且限定两个后缀suffix(sa[i]}和suffix(sa[i-1])不在同一个字符串就过了?而不要用rmq查找最长公共前缀?

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