ENG
RUS
Timus 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
Hint!
Posted by
Reshetnikov Andrey
2 Mar 2024 20:57
Think about O(N) solution, task much easier than is looks like.
I use queue and got AC despite my solution probably has O(N * queue_work_complexity), not clearly O(N)
© 2000–2024
Timus Online Judge Team
. All rights reserved.