How to solve this segment tree part of the problem "Hiring"

Revision en1, by question_id, 2016-03-29 21:41:22

Please, anyone help me on solving the segment tree part of the following problem: http://codeforces.me/contest/589/problem/G

I can handle the Binary Search part.. But the Segment tree part is very hard to me.

History

 
 
 
 
Revisions
 
 
  Rev. Lang. By When Δ Comment
en1 English question_id 2016-03-29 21:41:22 271 Initial revision (published)