One of the harder problems, according to USACO.guide, is Loan Repayment. I have looked over the official editorial and don’t fully understand what the solution encompasses. I would be grateful for any help or further explanation as to what to do and why it works. Thanks so much!
Here is the link to the problem: Loan Repayment Problem
Here is the link to the official solution: Loan Repayment Solution