Editorial for WC '18 Contest 3 J1 - An Honest Day's Work
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.
Submitting an official solution before solving the problem yourself is a bannable offence.
With litres of paint and each badge requiring
litres of it, James will produce
badges. There will be
litres of paint left over, which is equivalent to
(the remainder when
is divided by
, written as the
%
operator in most programming languages). Therefore, the number of Pokédollars made will be .
Comments