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 1097. Square Country 2

A good problem
Posted by Neumann 15 Feb 2005 21:14
After reading the problem,I think out an algo O(MLlogRang)at once.
But it is a bit slow,and the most important thing is that it
need much more momeries than 1000K.
So this algo doesn't work......:(
Later I realize that A,L<=10000 but M<=100!
Maybe it can help......Oh,yes!
Obvous every square has the lowest left point,and then......(think it yourself,hint:use some thought like greedy)
My algo is O(M^3),and it can faster......
Sorry for my poor English,Hope it can help......:)
Re: A good problem
Posted by Fu Dong 11 May 2005 09:40
My program is O(M^3), but got AC with 0.001s!
Re: A good problem
Posted by Sbintev Vladimir 1 Aug 2005 12:42
Stop it! We all know that you knew tests. It can't be solved with such a running time and memory used.