Beefy Boxes and Bandwidth Generously Provided by pair Networks
There's more than one way to do things
 
PerlMonks  

Re: Lights out puzzle (perl solution)

by ambrus (Abbot)
on Nov 28, 2011 at 21:41 UTC ( #940475=note: print w/ replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    use 5.014; use warnings;
    our($R, $C, $M) = (14, 14, 7);
    ...
    }
    say "done searching (R=$R, C=$C, M=$M).";
    __END__
    
  2. or download this
    Found solution: [
     . P . P . . . P . P . . . .
    ...
     . . . P P . .              
    ]
    done searching (R=14, C=14, M=7).
    

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://940475]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others exploiting the Monastery: (6)
As of 2014-09-20 07:23 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    How do you remember the number of days in each month?











    Results (157 votes), past polls