101k views
4 votes
there is 5 room, a cat-like robot wants to turns off or on the room's light. The first room was lighted on the second also lighted on but the 3 and 5 was not lighted on. If the robot found a room lighted on, it will switch off the light. And when the robot found a room lighted off it will switch on the light. How many times will the robots switch off all lights? (infinity is not a number!) ​

User Scurioni
by
4.6k points

1 Answer

2 votes

Answer:

2

Explanation:

if it is set up 1 2 3

4 5 it will go 1, 2, 4, 5, 3 and then switch on 5 then 3

User Alexey Ogarkov
by
5.1k points