E. Minimal payments

Problem Name:
E. Minimal payments
Site:AtCoder
Links:
Tags: