Editorial for COCI '07 Regional #3 Kuhar
Submitting an official solution before solving the problem yourself is a bannable offence.
Let us first solve the following subproblem: how many dollars must we pay to buy
This subproblem is easily solved by trying all possible numbers of large packages and calculating the number of small packages needed to achieve
Now we can check if we have enough ingredients for
A solution that increments
Comments