Practice · 3 of 3
Layered Network Flow
CHALLENGE
Difficulty: advanced+25 XP
**Bài toán.** Line 1: n m s t; then m lines u v c. Print the maximum flow from s to t. **Constraints:** 1 ≤ n, m ≤ 100 000; 1 ≤ c ≤ 10^9. Dinic required: BFS level graph + DFS blocking flow. Unit-push augmentation times out on the layered load.
Press Submit to check your solution.
Back to lesson: Practice: Flow Trio