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

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?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others taking refuge in the Monastery: (3)
As of 2018-10-18 23:02 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    When I need money for a bigger acquisition, I usually ...














    Results (106 votes). Check out past polls.

    Notices?