i am trying to do these question with binary search but it pass only few cases . my soln is http://codeforces.com/contest/604/submission/44016513
need help !! debug it
i am trying to do these question with binary search but it pass only few cases . my soln is http://codeforces.com/contest/604/submission/44016513