Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl: the Markov chain saw

Re: Programming Contest (High School '87)

by no_slogan (Deacon)
on May 12, 2001 at 03:37 UTC ( #79875=note: print w/replies, xml ) Need Help??

in reply to Programming Contest (High School '87)

39 characters

map{print$"x abs,"*"x(7-2*abs),$/}-3..3

and 37

print$"x abs,"*"x(7-2*abs),$/for-3..3

Replies are listed 'Best First'.
Re (tilly) 2: Programming Contest (High School '87)
by tilly (Archbishop) on May 12, 2001 at 14:44 UTC
    That is the best organization of the problem. All that I can add is a slimy trick. The spec said output, but did not say where that data had to go:
    warn$"x abs,"*"x(7-2*abs),$/for-3..3
    I am not sure whether saving this character would be legal in a real golf competition...

Log In?

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

How do I use this? | Other CB clients
Other Users?
Others exploiting the Monastery: (13)
As of 2018-12-10 20:47 GMT
Find Nodes?
    Voting Booth?
    How many stories does it take before you've heard them all?

    Results (52 votes). Check out past polls.

    • (Sep 10, 2018 at 22:53 UTC) Welcome new users!