Help with problem

Revision en1, by prebeginner, 2021-08-25 22:23:26

Hello I weas solving https://codeforces.me/contest/1450/problem/D. I saw, that some people solved this problem with binary search. I cant understand why does it work. Can you please explain, why it works. I cant understand explanation in editorial

Tags #help, #binary search, #segment tree, task d

History

 
 
 
 
Revisions
 
 
  Rev. Lang. By When Δ Comment
en1 English prebeginner 2021-08-25 22:23:26 266 Initial revision (published)