Description: Followed by a corridor containing n (1 ≤ n ≤ 65535) electric lamp, start to finish number 1,2,3, ... n-1, n. Each electric lamp controlled by a pull switch. Start, lights all closed.
There are n number of students across the promenade. The first students to number every light switch in multiples of 1 pull then the second student numbers every light switch to a multiple of 2 pull then a third of the number of students who multiples of three lamp switch pull so continue, and finally the first n the number of students who lamp switch multiple of n of pull. n After a student has completed this provision, there is Jizhan lamp lit corridor. Note: The lamp number and the number of students the same.
To Search:
File list (Check if you may need any files):
The number of lit lamps.doc