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

Re:如果输入的数据范围没有限制呢?

Posted by ysttk at 2009-09-23 19:27:22 on Problem 1007
In Reply To:Re:如果输入的数据范围没有限制呢? Posted by:yzthz at 2009-01-24 09:18:40
> 
> 此题每个string 只有4种字母,但没有限制就不能靠 a[0],a[1],a[2],a[3]这样做了
> 
> 最简单的是冒泡O(n^2),如果用分治、线段树之类的估计能到O(nlgn)吧
应该可以O(N)的吧

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