Beefy Boxes and Bandwidth Generously Provided by pair Networks Joe
"be consistent"
 
PerlMonks  

Re: Programming Contest (High School '87)

by no_slogan (Deacon)
on May 11, 2001 at 23:37 UTC ( [id://79875]=note: print w/replies, xml ) Need Help??

This is an archived low-energy page for bots and other anonmyous visitors. Please sign up if you are a human and want to interact.


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 10: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
Domain Nodelet?
Node Status?
node history
Node Type: note [id://79875]
help
Sections?
Information?
Find Nodes?
Leftovers?
    Notices?
    hippoepoptai's answer Re: how do I set a cookie and redirect was blessed by hippo!
    erzuuliAnonymous Monks are no longer allowed to use Super Search, due to an excessive use of this resource by robots.