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

后缀数组算最大重复次数 然后暴力查找字典序最小

Posted by lccycc at 2010-02-26 10:58:42 on Problem 3693 and last updated at 2010-02-26 11:16:01
数据水了 没防这种暴力法
但是 如果第二次暴力查找的过程改用链表 保证每个点开头都只探测到一次的话
这个算法就是O(n)的+O(nlogn)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