Editorial for COCI '16 Contest 1 #1 Tarifa


Remember to use this editorial only when stuck, and not to copy-paste code from it. Please be respectful to the problem author and editorialist.
Submitting an official solution before solving the problem yourself is a bannable offence.

How many megabytes would Pero have available in the N+1 month if he didn't spend any? The answer is (N+1) \times X megabytes. How many megabytes did Pero spend in the first N months since activating his plan? The answer is P_1 + P_2 + \dots + P_N. The number of megabytes that Pero has available in the N+1 month of using the plan is obtained by subtracting the spent megabytes from the total possible number of megabytes.


Comments

There are no comments at the moment.