How can this be solved using Binary Serach?

My mind is not able to absorb and undestand the greedy approach given in the editorial of the problem Chefland and Electricity…

Can this problem be solved using Binary Search,like agreesive cows problem ???
Or someone can suggest other method …

Problem Link :CHEFELEC Problem - CodeChef

If you’re stuck, you can go through this problem (I guess it’s a similar one).

This is also greedy (with a bit of DP). If you need help, we can discuss about the approaches.

Why would you bother with binary search? The solution can be found in a single, simple loop as in CodeChef: Practical coding for everyone