How to solve this CCO '20 problem

Revision en1, by RemoteCodeExecution, 2020-06-07 17:15:10

What would be the approach to solve this problem from canadian computer olympiad? https://dmoj.ca/problem/cco20p2

Tags #greedy, #fenwick tree

History

 
 
 
 
Revisions
 
 
  Rev. Lang. By When Δ Comment
en1 English RemoteCodeExecution 2020-06-07 17:15:10 151 Initial revision (published)