The task is asking for the maximum sum of money that can be earned by the nth day, not on the nth day.
The Description needs improvement on explaining the task in a coherent way. I'd strongly recommend putting more detail in how the solution is obtained in the example given the shortcomings of the rest of the Description.
This comment is hidden because it contains spoiler information about the solution
The task is asking for the maximum sum of money that can be earned by the nth day, not on the nth day.
The Description needs improvement on explaining the task in a coherent way. I'd strongly recommend putting more detail in how the solution is obtained in the example given the shortcomings of the rest of the Description.