Think about it. If lamp 1 is on, so is lamp 7, lamp 13, lamp 19, etc.
Every button which affects lamp 1 affects lamp 7, 13, 19... in exactly
the same way.
The same holds for every lamp n. Lamp n+6*x is affected the same way.
So you just need to figure out the state of lamps 1-6, and you know
the rest.
Don

On Sep 15, 11:58 pm, Mohammad Reza Rahmani
<mohammadreza.rahman...@gmail.com> wrote:
> I did'nt exactly what you say!!!!
> why 6 adjacent lamps????
> it just depend on the buttons not on lamps...
>
> "you just need to know if a certain button has been pushed..." you're
> true...and it has 4^100000...is it right?
>
> why 2^4???

-- 
You received this message because you are subscribed to the Google Groups 
"Algorithm Geeks" group.
To post to this group, send email to algogeeks@googlegroups.com.
To unsubscribe from this group, send email to 
algogeeks+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/algogeeks?hl=en.

Reply via email to