|시간 제한||메모리 제한||제출||정답||맞은 사람||정답 비율|
|1 초||512 MB||11||11||11||100.000%|
Paris has been called “ville lumière” (city of lights) since the 17th century. It earned this nickname in part because of the many city lights illuminating famous sites such as monuments, statues, churches, or fountains.
Those public lights in Paris are numbered from 1 to N and are all on by default. A group of hackers has gained the capability to toggle groups of lights. Every time the hackers use their program, they cause a number i (that they cannot control) to be sent to the system controlling the city lights. The lights numbered i, 2i, 3i, and so on (up to N) then change state instantly: lights that were on go off, and lights that were off go on.
During the night, the hackers use their programs k times. What is the greatest number of lights that are simultaneously off at the same time?
The input comprises several lines, each consisting of a single integer:
The output should consist of a single line, whose content is an integer, the greatest number of lights that are simultaneously off at the same time.
10 4 6 2 1 3