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 1029. Ministry

Best solution?
Posted by The Eliminator (Galkovsky Taras) 25 Mar 2003 14:32
I have solution which works O(m*n*log n) but it gets time limit?!
Can any body explain me faster solution?
O(m*n) (-)
Posted by Miguel Angel 27 Mar 2003 00:39
> I have solution which works O(m*n*log n) but it gets time limit?!
> Can any body explain me faster solution?