How to solve this (Minimal Payments ABC 231)?

Revision en1, by aopo, 2021-12-12 07:57:37

Minimal Payment Can anyone suggest an approach to solve this one? It came in yesterday Atcoder Beginner Contest 231. The editorial is not clear to me and the sample code provided there is giving 404 error. Please someone help me with this!

History

 
 
 
 
Revisions
 
 
  Rev. Lang. By When Δ Comment
en1 English aopo 2021-12-12 07:57:37 339 Initial revision (published)