You are not logged in.

#51 2010-02-17 05:46:25

Trent
Member
From: Baltimore, MD (US)
Registered: 2009-04-16
Posts: 990

Re: The Golf Tournament!

39 char Perl:

$_="ArchLinux"x78;s/.{78}/$&\n/g;print

Edit: Forgot to use the default for print... duh.

Last edited by Trent (2010-02-17 05:53:29)

Offline

#52 2010-02-17 05:48:29

dmz
Member
From: Sweden
Registered: 2008-08-27
Posts: 881
Website

Re: The Golf Tournament!

And I'm stuck at 41 in perl...

printf"%.78s\n",'ArchLinux'x79 for(0..9)

Offline

#53 2010-02-17 05:50:08

dmz
Member
From: Sweden
Registered: 2008-08-27
Posts: 881
Website

Re: The Golf Tournament!

Trent wrote:

41 char Perl:

$_="ArchLinux"x78;s/.{78}/$&\n/g;print$_

Love that approach. smile

Offline

#54 2010-02-17 17:23:40

snakebite
Member
From: Norway
Registered: 2009-05-13
Posts: 42

Re: The Golf Tournament!

Python. Same length as raf_kig's entry (which is 54, not 55, unless you're supposed to count trailing newlines), but I used a different approach with the slicing.

for i in range(9):print(('ArchLinux'*10)[i*6%9:])[:78]

Offline

#55 2010-02-17 18:38:17

Gigamo
Member
Registered: 2008-01-19
Posts: 394

Re: The Golf Tournament!

Edit: Nevermind smile

Last edited by Gigamo (2010-02-17 18:41:03)

Offline

#56 2010-02-17 19:31:50

n0dix
Member
Registered: 2009-09-22
Posts: 956

Re: The Golf Tournament!

Gigamo wrote:

Edit: Nevermind smile

Epic Fail? lol

Last edited by n0dix (2010-02-17 19:32:00)

Offline

#57 2010-02-18 03:04:50

urist
Member
Registered: 2009-02-22
Posts: 248

Re: The Golf Tournament!

I wrote a program in Haskell that's 62 characters. I won't post it due to the language restriction and all. 62 seems to be about the limit but I'm always finding new ways to shave off a char or two.

Down to 59! The amount of characters stays the same regardless of my use of newlines.
54! I seem to be not far away from the "real" entries now.

Last edited by urist (2010-02-18 03:17:39)

Offline

Board footer

Powered by FluxBB