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.
Submitting an official solution before solving the problem yourself is a bannable offence.
Author:
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 to a total clap count and subtract from per iteration. Iteration should stop when either the value hits (articles will no longer count for claps) or when the sum of claps reaches the goal.
Comments