Sponsored
Use these hints if you're stuck. Try solving on your own first.
Keep track of the engineers by their efficiency in decreasing order.
Starting from one engineer, to build a team, it suffices to bring K-1 more engineers who have higher efficiencies as well as high speeds.