Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl-Sensitive Sunglasses

Re^3: Diamonds for fun

by ambrus (Abbot)
on Mar 07, 2011 at 21:14 UTC ( #891911=note: print w/replies, xml ) Need Help??

in reply to Re^2: Diamonds for fun
in thread Diamonds for fun

It works for 9 on a 64 bit system, which is why I didn't notice it's broken, but it is indeed broken on 64 bit systems.

You could try to fix it with something like this, but as is that's too long and I don't feel much like golfing it now.

perl -e 'printf"%*.0f\n",$t+abs,(1x abs)**2for 1..($t=pop),1-$t..-1' 9

Log In?

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://891911]
[Corion]: We-ird - I hadn't known this, but Ingress and Pokemon Go (both AR games in the real world where you run around) switched from using Google Maps to OpenStreetMaps, which is great. But I wonder why, as Ingress is (was?) owned by Google/Alphabet. But ...
[Corion]: ... maybe not wholly owned, or the load on Google Maps was too high?!

How do I use this? | Other CB clients
Other Users?
Others scrutinizing the Monastery: (7)
As of 2018-03-19 09:10 GMT
Find Nodes?
    Voting Booth?
    When I think of a mole I think of:

    Results (236 votes). Check out past polls.