← 返回数学题库
5729脑筋急转弯中等brainteasermedium

One Hundred Lockers

题目

There are 100 lockers, numbered 1 to 100, all initially closed. A student makes 100 passes along the row. On pass k (for k from 1 to 100) the student toggles every locker whose number is a multiple of k — opening it if closed, closing it if open. After all 100 passes are complete, how many lockers are left open?

解题计时

0:00

提交作答时记录,用于后续平均用时统计。

你的答案