- #1
mimibajiduh
- 15
- 0
there are 100 hotel rooms and 100 guests.
change the status means open goes to closed and closed goes to open.
guest 1: goes to every room and changes its status
guest 2: goes to every 2 rooms(2, 4,6,8,...,100) and changes its status
guest 3: goes to every 3 rooms and changes its status
guest 4: goes to every 4 rooms and changes its status
this goes on all the way to guest 100
guest 100: goes to 100 and changes its status
which rooms are closed? i know that room 1 is closed.
change the status means open goes to closed and closed goes to open.
guest 1: goes to every room and changes its status
guest 2: goes to every 2 rooms(2, 4,6,8,...,100) and changes its status
guest 3: goes to every 3 rooms and changes its status
guest 4: goes to every 4 rooms and changes its status
this goes on all the way to guest 100
guest 100: goes to 100 and changes its status
which rooms are closed? i know that room 1 is closed.