Sponsored
Use these hints if you're stuck. Try solving on your own first.
Use binary search on the answer.
You can get l/m branches of length m from a branch with length l.
Solve with full IDE support and test cases