You currently have N toffees with you. There's also a limited edition offer going on right now. The offer says that for every X toffee wrappers you'll get one toffee. You want to eat as many toffees as you can before the offer expires. Find the maximum number of toffees you can eat.
Scores will be calculated as follows:
Score = (1 - c / 1000) * 100
, where c
is the number of characters in your code. In case the characters exceed 1000, your score will be zero.