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 1579. Coat Transportation

Pages: Previous 1 2
NlogN AC
Posted by Hanzbrow (TNU) KCC 31 Oct 2009 13:59
O(N*logN) AC 0.234
Re: NlogN AC
Posted by Kolyanich 5 Jul 2011 13:04
Brilliant problem! Solved in O(N) with 3 lines of creating chains and bit more lines for printing results. Fist tried to solve it as 1533 (Fat Hobbits), but it is much easier
Pages: Previous 1 2