Editorial for VMSS Pre-Pre-Windsor P1 - Mr. White's Carnival
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:
It suffices to loop from to and check if each number is divisible by . If the number is divisible by , then add it to a variable containing the total sum of all factors.
Note that a number is a factor of if .
Time Complexity:
Comments