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 2216. Big Elevator

Hint
Posted by Solver 1 Jul 2026 21:54
Nice one about max-flow :) solvable at O(N*log(N)) by greedy propagation of most backward vertex using any of still unused elevators (did it using the farthest one, but it doesn't matter)

Edited by author 01.07.2026 22:02