Doubt in problem B-Present

Revision en1, by _Erased, 2020-04-25 08:35:29

The tutorial of the problem 1322B - Present says "Bonus:Solve the problem in O(NlogC)." Can someone please explain how to do it?

History

 
 
 
 
Revisions
 
 
  Rev. Lang. By When Δ Comment
en1 English _Erased 2020-04-25 08:35:29 154 Initial revision (published)