Editorial for Valentine's Day '18 J2 - Stop the Scammer

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.

Author: kipply

Since the final, cease-and-desist will receive the sum of the claps of all the previous articles, and is not counted in the answer, then the clap-value of each article can be doubled.

Brute force is the intended solution. Add 2X to a total clap count and subtract Y from X per iteration. Iteration should stop when either the X value hits 0 (articles will no longer count for claps) or when the sum of claps reaches the goal.


There are no comments at the moment.