Beefy Boxes and Bandwidth Generously Provided by pair Networks
XP is just a number
 
PerlMonks  

Re: Programming Contest (High School '87)

by no_slogan (Deacon)
on May 12, 2001 at 03:37 UTC ( [id://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
Domain Nodelet?
Node Status?
node history
Node Type: note [id://79875]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others cooling their heels in the Monastery: (3)
As of 2024-04-26 03:08 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found