ENG  RUSTimus Online Judge
Online Judge
Problems
Authors
Online contests
About Online Judge
Frequently asked questions
Site news
Webboard
Links
Problem set
Submit solution
Judge status
Guide
Register
Update your info
Authors ranklist
Current contest
Scheduled contests
Past contests
Rules
back to board

Discussion of Problem 1126. Magnetic Storms

Is there a solution can solve the problem faster than a o(m*n^0.5) algorithm)
Posted by coma 3 Jun 2003 11:15
Re: Is there a solution can solve the problem faster than a o(m*n^0.5) algorithm)
Posted by Nick Permyakov 16 Aug 2003 18:34
There is an O(n) solution for this problem.
Re: Is there a solution can solve the problem faster than a o(m*n^0.5) algorithm)
Posted by WinTokk 15 Apr 2004 18:00
Mine is O(M*logM).

Edited by author 15.04.2004 18:02