Beefy Boxes and Bandwidth Generously Provided by pair Networks
good chemistry is complicated,
and a little bit messy -LW

Re: Friday Golf: All 2-digit combinations

by Rich36 (Chaplain)
on Sep 26, 2003 at 13:46 UTC ( #294417=note: print w/ replies, xml ) Need Help??

in reply to Friday Golf: All 2-digit combinations

I'm certainly not going to win with a score of 132 (actually 130 minus the two strokes for not using(00..99)), but it's a different way to do it. I never was much good at golf anyway...

$n{sprintf("%02d", $c++)}=1 until($c>99);for(keys %n){delete $n{$_}if( +$n{reverse($_)}&&reverse($_)!=$_)}print join('',sort keys %n)


Comment on Re: Friday Golf: All 2-digit combinations
Download Code

Log In?

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

How do I use this? | Other CB clients
Other Users?
Others taking refuge in the Monastery: (5)
As of 2015-11-26 00:37 GMT
Find Nodes?
    Voting Booth?

    What would be the most significant thing to happen if a rope (or wire) tied the Earth and the Moon together?

    Results (694 votes), past polls