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
1237
. Evacuation Plan
Levit algorithm
Posted by
Igor Parfenov
11 Apr 2023 03:28
I firstly tried to solve it with Ford-Bellman algorithm, but got TL and could not make it pass. Then I found here
https://e-maxx.ru/algo/min_cost_flow
Levit algorithm, and it passed.
© 2000–2024
Timus Online Judge Team
. All rights reserved.