In article <3CA032E7.16703.3A95CBA9@localhost>,
"Keith C. Ivey" <[EMAIL PROTECTED]> writes:
> Stephen Turner <[EMAIL PROTECTED]> wrote:
>
>> Task: Each line on stdin contains an integer in [2,1]
>> in decimal notation followed by a newline. Copy to stdout
>> those lines for which the
In article ,
[EMAIL PROTECTED] (Ton Hospel) writes:
> mm, the standard golfers solution to this is 28 I'd say.
Oops, ignore that. must count the options of course,
so i also get the natural 31
In article ,
[EMAIL PROTECTED] (Ton Hospel) writes:
> In article ,
> [EMAIL PROTECTED] (Ton Hospel) writes:
>> mm, the standard golfers solution to this is 28 I'd say.
> Oops, ignore that. must count the options of course,
> so i also get the natural 31
In article <[EMAIL PROTECTED]>,
Jean-Pierre <[EMAIL PROTECTED]> writes:
> Although I have entered tpr(0,2) as a veteran, although I am in fact a
> veteran, I am also a perl's newbie. I play golf because it is fun, of course,
> but also because it helps me to read perldoc more and more.
>
In article <[EMAIL PROTECTED]>,
Yanick <[EMAIL PROTECTED]> writes:
> Oh, and on a related topic, I humbly suggest to keep
> the number of holes in the low double binary (1 or 2
> holes). One week is quite a short time, and I think we
> all have seen how a single hole can keep us all
Ok, this one is now finished too.
There is no post-mortem link yet, but you can find it at
http://la.pm.org/cgi-bin/PGAS/post_mortem.cgi?id=1
It's won by Spifff with an entry that the judges of tpr3
should take notice off. It probably means the rule
"must run in finite time" should be amended to
In article <a995ot$9ub$[EMAIL PROTECTED]>,
[EMAIL PROTECTED] (Ton Hospel) writes:
> Ok, this one is now finished too.
> There is no post-mortem link yet, but you can find it at
> http://la.pm.org/cgi-bin/PGAS/post_mortem.cgi?id=1
>
> It's won by Spifff with a
In article <[EMAIL PROTECTED]>,
Rick Myers <[EMAIL PROTECTED]> writes:
> On Apr 13, 2002 at 11:45:33 +0000, Ton Hospel wrote:
>>
>> The really interesting entry is in fact the one by Rick Myers
>> because it can be trivially improved to
In article <[EMAIL PROTECTED]>,
Stefan `Sec` Zehl <[EMAIL PROTECTED]> writes:
> On Sat, Apr 13, 2002 at 11:45:33AM +0000, Ton Hospel wrote:
>> Ok, this one is now finished too.
>> There is no post-mortem link yet, but you can find it at
>> http://la.pm.or
In article <[EMAIL PROTECTED]>,
Stefan `Sec` Zehl <[EMAIL PROTECTED]> writes:
> On Sat, Apr 13, 2002 at 09:22:11PM +0000, Ton Hospel wrote:
>> the accumulator must be a string so you get magic ++
>> If you let it go from undef, it's a numeric ++
>
>
In article <[EMAIL PROTECTED]>,
[EMAIL PROTECTED] writes:
> En op 14 april 2002 sprak /-\ndrew:
>> While researching tpr02, I stumbled across perhaps the earliest
>> example of an organised golf competition:
>
> http://groups.google.com/groups?hl=en&selm=37DD324C.A984C7A9%40wins.uva.nl
>
In article <[EMAIL PROTECTED]>,
Mtv Europe <[EMAIL PROTECTED]> writes:
> I'm sorry for flooding.
>
>>> -p @$=a..z;pop@$ while@$>3&&!/@$[-4..-1]/x;$_ x=@$>3
>> that's better -
>> -p @$=a..z;pop@$ until@$<4||/@$[-4..-1]/x;$_ x=@$>3
>
> -p @$=a..z;1until/@$[-4..-1]/x|!--$#$;$_ x=@$>3
Near t
In article <a9i5mg$mb5$[EMAIL PROTECTED]>,
[EMAIL PROTECTED] (Ton Hospel) writes:
> In article <[EMAIL PROTECTED]>,
> Mtv Europe <[EMAIL PROTECTED]> writes:
>> I'm sorry for flooding.
>>
>>>> -p @$=a..z;pop@$ while@$>3&
In article <a9iae8$pcc$[EMAIL PROTECTED]>,
[EMAIL PROTECTED] (Ton Hospel) writes:
> In article <a9i5mg$mb5$[EMAIL PROTECTED]>,
> [EMAIL PROTECTED] (Ton Hospel) writes:
>> In article <[EMAIL PROTECTED]>,
>> Mtv Europe <[EMAIL PROTECT
In article <[EMAIL PROTECTED]>,
Stefan `Sec` Zehl <[EMAIL PROTECTED]> writes:
> and, afaics the winning one:
>
> -n /(.)((??{chr 1+ord$+})){3}/&&print
Oh, I missed that one in the archives. Neat.
>
> which can (with todays golf knowledge) be shortened to:
>
> -p $_ x=/(.)((??{chr 1+or
In article <[EMAIL PROTECTED]>,
Yanick <[EMAIL PROTECTED]> writes:
> Have any of you wondered what it feels like to shave off that single
> character that improves your hole for the first time after four
> long days of stagnation and finally, finally gives you a lead
> over the golfer t
In article <[EMAIL PROTECTED]>,
Stefan `Sec` Zehl <[EMAIL PROTECTED]> writes:
> On Wed, May 01, 2002 at 07:08:51PM +0100, Adam Spiers wrote:
>> That seems a bit unfair for people who were planning on being in a
>> team but in their eagerness to get cracking have already submitted
>> soluti
In article <[EMAIL PROTECTED]>,
Yanick <[EMAIL PROTECTED]> writes:
> On Wed, May 01, 2002 at 10:06:27AM -0400, Yanick wrote:
>> The TPR(0,3) course stats are available at
>> http://babyl.dyndns.org/golf/course.epl?course_id=3
>
> And now, so are the individual stats for both h
In article <3CD0C9A700068A3D@dummy>,
Jerome Quelin <[EMAIL PROTECTED]> writes:
> On Jeudi 2 Mai 2002 17:14, Dave Hoover wrote :
>> BTW, Jerome is now one stroke behind Ton. Prior to the tournament,
>> Jerome confided in me that he was a bit nervous that refereeing
>> for the past few mont
I'd like to repropose my idea for a perl golf rating that is fairer to
people who rarely play.
All players have a certain rating before a tournament.
When a tournament is done and, say, the winner had A strokes and you have
B strokes, you get:
score = A*100/B
(So the winner gets 100, if you
In article ,
Mark Schoonover <[EMAIL PROTECTED]> writes:
> --_=_NextPart_001_01C1F771.2FDB9790
> Content-Type: text/plain;
> charset="iso-8859-1"
>
> Well, I did try to mangle my entire name, but the R would never look good.
> I'm sure `/ anick wants it to look good.
>
R is do
In article <[EMAIL PROTECTED]>,
[EMAIL PROTECTED] writes:
> En op 10 mei 2002 sprak Red Squirrel:
>> If that is acceptable to Yanick, I think it might help the
>> situation and prevent the addition of yet another category
>> (newbies) that would end up with too much disparity.
>
> PGAS sh
In article <[EMAIL PROTECTED]>,
"Jonathan E. Paton" <[EMAIL PROTECTED]> writes:
>> This revives an old idea I had during the Santa tournament
>> where a genetic algorithm is used to evolve potential hole
>> solutions. The way it works is to initially create a large
>> number of random solu
In article <[EMAIL PROTECTED]>,
"Terje Kristensen" <[EMAIL PROTECTED]> writes:
> Have anyone seen this page ?
>
> http://acm.uva.es/problemset/
>
> since there are like close to 1000 programming problems here, I think we could keep
>it up for a few months before we run out :)
>
> Terje
Here's a small challenge that I set people on ircnet #perl:
minigolf: write a program that, given argument n, prints to stdout the sum
of the factors of n followed by a newline, e.g. "program 12" should print
"16\n" (because factors 12 = 1 2 3 4 6. 1+2+3+4+6=16) (the number itself
is not coun
In article <[EMAIL PROTECTED]>,
"Jonathan E. Paton" <[EMAIL PROTECTED]> writes:
>> > This is in fact unexpectedly challenging. a 43 is easy. A 40 is hard.
>>
>> Here's mine
>>
>> $m=pop;for(1..$m-1){$n+=$m%$_?0:$_}print $n
>>
>> 43, if I understand the rules correctly. (First attempt a
In article <abuu69$iu6$[EMAIL PROTECTED]>,
[EMAIL PROTECTED] (Ton Hospel) writes:
> Here's a small challenge that I set people on ircnet #perl:
>
> minigolf: write a program that, given argument n, prints to stdout the sum
> of the factors of n followed by a ne
In article <[EMAIL PROTECTED]>,
Lolly Pop <[EMAIL PROTECTED]> writes:
> [EMAIL PROTECTED] (Jonathan e. paton) writes:
>
>> It might not be the winning solution, but you missed
>> a character optimisation suggested earlier:
>>
>> #!perl -l
>> map$n+=$m%$_?0:$_,1..($m=pop)/2;print$n
>
> Y
In article <[EMAIL PROTECTED]>,
[EMAIL PROTECTED] writes:
> I am curious to see how close Ton lives to (-ugene
> (I doubt they live in the same flat). We may need a
> map of Mars before Ton can submit his co-ordinates.
>
> /-\ndrew
My ICBM coordinates are latitude 52.083 longitude 4.333
In article <[EMAIL PROTECTED]>,
Matthew Byng-Maddick <[EMAIL PROTECTED]> writes:
> On Thu, May 23, 2002 at 10:38:39PM +0000, Ton Hospel wrote:
>> My ICBM coordinates are latitude 52.083 longitude 4.333
>
> This is a common myth, ICBM coordinates need altitude
In article <[EMAIL PROTECTED]>,
Stefan `Sec` Zehl <[EMAIL PROTECTED]> writes:
> Several people have already done so. The map looks quite populated.
>
> Very few people have sent in their actual coordinates, so I tried to
> resolve the city names. Unfortunately, the database I use doesn't
In article ,
[EMAIL PROTECTED] (Ton Hospel) writes:
> but if you need a standard formal golf, you can go to
> http://www.ardinternet.com/golf/oddnumbermagicsquare/
This golf is finished in the mean time, with a
post-mortem at http://la.pm.org/cgi-bin/PGAS/post_mortem.cgi?id=3
H
In article <ac3otl$rr2$[EMAIL PROTECTED]>,
[EMAIL PROTECTED] (Ton Hospel) writes:
> In article <[EMAIL PROTECTED]>,
> Lolly Pop <[EMAIL PROTECTED]> writes:
>> #!perl -l
>> print$n-map$n+=@a%$_?0:$_,@a=1..pop
>>
>
> Yup, you found t
In article <[EMAIL PROTECTED]>,
Peter Makholm <[EMAIL PROTECTED]> writes:
> [EMAIL PROTECTED] (Ton Hospel) writes:
>
>> This is not the first time I've been wondering about the exact form of $0.
>> I'd also like a judgement if `$0 args` is allowe
In article <[EMAIL PROTECTED]>,
Ala Qumsieh <[EMAIL PROTECTED]> writes:
> --_=_NextPart_001_01C20AA1.225A7080
> Content-Type: text/plain;
> charset="iso-8859-1"
>
>
> Some of you might have noticed a slight delay in submission confirmations
> (around 9 hours or so :)
> I would
In article <[EMAIL PROTECTED]>,
"Dave Hoover" <[EMAIL PROTECTED]> writes:
> With 2 and a half days to go, the TPR(0,4) outcome is still in doubt.
> Eugene overtakes Ton and Ton regains the lead. Guillermo passes pom and pom
I'm now in the dreaded "I'm ahead, will i stay ahead ?" phase.
In article <[EMAIL PROTECTED]>,
"Mark Anderson" <[EMAIL PROTECTED]> writes:
>>However, one of these superbeginners entered again and spoils it for them.
>>Since the beginner category is meant purely psychological (to get
>>people to enter), and these guys defeat the whole point, I again pr
In article <[EMAIL PROTECTED]>,
Stefan `Sec` Zehl <[EMAIL PROTECTED]> writes:
> On Fri, Jun 07, 2002 at 08:41:52PM +0200, Stefan `Sec` Zehl wrote:
>> I really tried to beat Mr. Escaped Quote[tm], but as I have to leave
>> now, and won't return until the end of the tournament I have lost th
In article <[EMAIL PROTECTED]>,
"Sean O'Rourke" <[EMAIL PROTECTED]> writes:
> Mad props to Steven Turner, by the way, for making pack"A" work in so few
> chars -- I tried it early on, but gave up in favor of Regex Hell well
> before 200. And Marten Carlsen, for hitting 200 without command
In article ,
Stephen Turner <[EMAIL PROTECTED]> writes:
> On Sat, 8 Jun 2002, Stephen Turner wrote:
>>
>> So far, I believe I've saved Eugene one stroke
>>
>
> Hmmm. If I have, I've also saved Ton one. Maybe there's some reason why it's
> b
In article <[EMAIL PROTECTED]>,
Stefan `Sec` Zehl <[EMAIL PROTECTED]> writes:
> On Sat, Jun 08, 2002 at 12:05:55PM +0100, Stephen Turner wrote:
>> But why didn't the referees allow it? There's nothing in the rules about it,
>> is there? And surely it wasn't just the problems with submittin
In article <[EMAIL PROTECTED]>,
Eugene van der Pijll <[EMAIL PROTECTED]> writes:
>
> $script =~ s#(\cM\cJ)#''#ge;
> $script =~ s#([\0-\x1f])#'^'.($1^"\x40").''#ge;
>
Colors ! Good idea. Combine with my combined ^letter and \escape idea
and we're getting somewhere !
Notice that tab is in
In article <[EMAIL PROTECTED]>,
Mtv Europe <[EMAIL PROTECTED]> writes:
> Hello All!
>
> Here is 149.23:
>
> #!perl -ap056
> sub
> t{lc=~y/aeiouy//.v47.s/\w/$&/g}$_=/\./&&(@z=map//?t:$_^t^($_^=t^t),@F).": @F
> ".t.":@z
> ";y/\0/ /;s/( .{57})...+(.
> .*.{0,56}\S+).*/$1..$2/
>
In article <[EMAIL PROTECTED]>,
Rick Klement <[EMAIL PROTECTED]> writes:
> Stephen Turner wrote:
>>
>> On Sat, 8 Jun 2002, Ton Hospel wrote:
>> >
>> > I suppose it's the \0 => binary zero ?
>> >
>> > If so, neithe
In article <[EMAIL PROTECTED]>,
Lars Henrik Mathiesen <[EMAIL PROTECTED]> writes:
> Well, people actually managed to input the other strange chars in
> their browser: tabs, ÿ, and so on. But for NUL, Dave would have had to
> change every submission manually in PGAS --- that's the main reas
In article <[EMAIL PROTECTED]>,
Lars Henrik Mathiesen <[EMAIL PROTECTED]> writes:
>> Date: Sat, 8 Jun 2002 22:10:46 + (UTC)
>> From: [EMAIL PROTECTED] (Ton Hospel)
...snip some boring stuff about \0..
>>
>> Actually it's a browser bug. newl
In article <adu83h$4ni$[EMAIL PROTECTED]>,
[EMAIL PROTECTED] (Ton Hospel) writes:
in the mean time I found in win32/win32.h:
#ifdef PERL_TEXTMODE_SCRIPTS
# define PERL_SCRIPT_MODE "r"
#else
# define PERL_SCRIPT_MODE "rb"
#endif
and
In article <[EMAIL PROTECTED]>,
Brian <[EMAIL PROTECTED]> writes:
> I very rarly run on MS, but here is the results...
>
> Yields 0d0d0a (binmode)
>
Ok, i think then all is explained. Lars's interpretation of how windows
reads something submitted as cr cr lf in http is the right one.
S
In article <[EMAIL PROTECTED]>,
"Sean O'Rourke" <[EMAIL PROTECTED]> writes:
> From the rules: "A word contains at least one alphanumeric character
> (letter or digit), and optionally some punctuation (. , ; : ' " ( ) & /).
> Note: This means that punctuation characters can never occur alo
In article <[EMAIL PROTECTED]>,
"Sean O'Rourke" <[EMAIL PROTECTED]> writes:
> I take them to be required: "A paragraph consists of one or more
> sentences, separated by sequences of whitespace characters (spaces and/or
> at most one newline)," and "a sentence consists of one or more words,
In article <[EMAIL PROTECTED]>,
[EMAIL PROTECTED] writes:
> Keith did this several times during the Get Even game:
>
> http:[EMAIL PROTECTED]/msg01257.html
>
> "If you suspect your solution is unsound, please please do what
> Keith did, and try to find some test data that breaks it.
> At
In article <[EMAIL PROTECTED]>,
Josef Drexler <[EMAIL PROTECTED]> writes:
> On Mon, 10 Jun 2002, Michael W Thelen wrote:
>> Finally, after having $V=$T=$p=$q=$s=$Z (or something similar) in my program
>> for the entire week, I found a clever way of undefining all variables $B..$Z
>> (not $
In article <[EMAIL PROTECTED]>,
Dave Hoover <[EMAIL PROTECTED]> writes:
> This is a multi-part message in MIME format.
>
> --=-=jUsT.aNoThEr.mImE.bOuNdArY=-=10238211438433=-=
> Content-Type: text/plain; charset=iso-8859-1
> Content-Transfer-Encoding: 8bit
>
> Mtv wrote:
>>Ton has one ide
In article <[EMAIL PROTECTED]>,
Eugene van der Pijll <[EMAIL PROTECTED]> writes:
>> If (-ugene is retrospectively stripped of the "first
>> working submission" title, who does it go to?
>> Surely not `/anick? Not sure, but I think one of
>> (-ugene's later submissions would get the nod.
>
In article <[EMAIL PROTECTED]>,
Dave Hoover <[EMAIL PROTECTED]> writes:
> which prints ASCII 0 as ^@. This brings up another issue, should
> ASCII 0 be represented as \0 or ^@?
I prefer the escape, unless directly after a $, then use the ^letter
version.
In article <[EMAIL PROTECTED]>,
Dave Hoover <[EMAIL PROTECTED]> writes:
> If in your search for the truth you have found any different formulae,
> I would be interested in them.
>
> http://www.redsquirreldesign.com/cgi-bin/fun/mars.pl
>
> Enjoy,
> --Dave
>
> PS: Of those involved in the
In article <[EMAIL PROTECTED]>,
Chris Dolan <[EMAIL PROTECTED]> writes:
> Hey! I'm not an alien! My convincing evidence:
>
> * I was born three years before "the incident"
Something must have *caused* the incident.
So we can safely posit elders.
> * I didn't even know about Perl Golf
In article <[EMAIL PROTECTED]>,
Phil Carmody <[EMAIL PROTECTED]> writes:
> 2) In 2 days time, I'm going to want some pointers from the gurus on
> the no doubt obvious tweaks that I could make to my hamming entry -
> is this the place for such discussions?
A bit of technique is needed her
In article <aegjqm$o79$[EMAIL PROTECTED]>,
[EMAIL PROTECTED] (Ton Hospel) writes:
> In article <[EMAIL PROTECTED]>,
> Phil Carmody <[EMAIL PROTECTED]> writes:
>
>> 2) In 2 days time, I'm going to want some pointers from the gurus on
>> t
In article <[EMAIL PROTECTED]>,
Phil Carmody <[EMAIL PROTECTED]> writes:
> Hmmm, if // means last 'succesfully executed' re. what does it mean
> if it's the first ever re?
>
Then it's the empty regex.
See for example the winning solution of TPR1 for a use of the way
that the meaning of //
In article <aehnp8$2v3$[EMAIL PROTECTED]>,
[EMAIL PROTECTED] (Ton Hospel) writes:
> Then it's the empty regex.
Duh, of course it's the empty regex.
I meant: if there was no successfull regex yet, it matches
the empty string.
In article <[EMAIL PROTECTED]>,
Phil Carmody <[EMAIL PROTECTED]> writes:
> --- "Karger, Amir" <[EMAIL PROTECTED]> wrote:
>> Anyway, I'm wondering if there's something about the mindset
>> required for Fungeing that's also required for Perl golfing, or if
>> it's just that in any large grou
ick Klement and Ton Hospel with a score of 35.
However, in the post-mortem mtv (who else) found a 32.
What can this list do ? Can you find 35 ? 32 ? even lower ?
In article <002b01c21b18$4a0d0ed0$18e791d8@saturn>,
<[EMAIL PROTECTED]> writes:
> The problem? Towers of Hanoi. The solution? So preposterously short that
> at first I thought it a troll.
>
> http://www.perlmonks.com/index.pl?node_id=176643
>
> Who was that masked alien?
Ah, that was a
In article <[EMAIL PROTECTED]>,
Yanick <[EMAIL PROTECTED]> writes:
> On Mon, Jun 24, 2002 at 10:49:21AM -0400, Amir Karger wrote:
>> -p $_=(sort{1x$a^1x$_-1x$b^1x$_}<>)[0]
>
> -p ($_)=sort{1x$a^1x$_-1x$b^1x$_}<>
>
> Joy,
> `/.
>
Except that it doesn't work for big numbers in the input
In article <001201c21c32$9bc90420$[EMAIL PROTECTED]>,
Benoît Chauvet <[EMAIL PROTECTED]> writes:
> Yes, but have you tried this ?
> -p ($_)=sort{abs$_-$a<=>abs$_-$b}<> (35)
>
Good, the 35 has fallen. I've seen fragments of the route to 32 already...
In article <[EMAIL PROTECTED]>,
Michael W Thelen <[EMAIL PROTECTED]> writes:
> On Tue, Jun 25, 2002 at 12:25:20PM +0200, Benoît Chauvet wrote:
>> Yes, but have you tried this ?
>> -p ($_)=sort{abs$_-$a<=>abs$_-$b}<> (35)
> I like this solution, but after processing the input lines, it han
In article <003701c21c8_$3d_0_da0$0201a8c0@dsl>,
"Benoît Chauvet" <[EMAIL PROTECTED]> writes:
> - Original Message -
> From: "Ton Hospel" <[EMAIL PROTECTED]>
>> > Yes, but have you tried this ?
>> > -p ($_)=sort{abs$
In article <[EMAIL PROTECTED]>,
Chris Dolan <[EMAIL PROTECTED]> writes:
> 135 for me.
>
To avoid a mailinglist with only mails with numbers, you can also mail
your scores to [EMAIL PROTECTED] . Don't send your program (yet)
though, I'm a player too. I also don't guarantee quick turnaround
New testscript for http://www.xs4all.nl/~thospel/golf/midigolf1.html
In article <[EMAIL PROTECTED]>,
[EMAIL PROTECTED] writes:
> And for the people who really can't stop:
>
> http://www.xs4all.nl/~thospel/golf/midigolf1.html
>
> however, do NOT post solutions on the list, only say how many strokes you
> have. This one is still in progress and we don't wan
In article <[EMAIL PROTECTED]>,
[EMAIL PROTECTED] writes:
> To give the mailinglist an equal chance to ircnet #perl:
> http://www.xs4all.nl/~thospel/golf/minigolf3.html
And now there is even a testprogram:
http://www.xs4all.nl/~thospel/golf/minitest3.pl
rumor has it that it even works o
In article <[EMAIL PROTECTED]>,
"Terje Kristensen" <[EMAIL PROTECTED]> writes:
Hey stop ! The game's not over yet !
In article <[EMAIL PROTECTED]>,
[EMAIL PROTECTED] writes:
> To give the mailinglist an equal chance to ircnet #perl:
> http://www.xs4all.nl/~thospel/golf/minigolf3.html
And it's finished.
Please mail me your best solutions and any particularly interesting ones.
In article <[EMAIL PROTECTED]>,
"Dave Hoover" <[EMAIL PROTECTED]> writes:
> Ton wrote:
>> Please mail me your best solutions and any particularly interesting ones.
>
> #!perl -pl
> ++$_[--$_]while$_}for(sort@_){
Rejected...
In article <[EMAIL PROTECTED]>,
Rick Klement <[EMAIL PROTECTED]> writes:
> "more whitespace -> more favoured -> good"
>
> I was trying for that oxymoron: "more readable golf"
>
It's a lost cause. It will look like line-noise anyways.
In article <[EMAIL PROTECTED]>,
Rick Klement <[EMAIL PROTECTED]> writes:
>
>
> ...
> ...
> .. ...
> . ..
>
> there is a node name '' that is both in a relationship and is included
> as an "isolated" node. I believe that is legal.
>
duh ? But t
In article <[EMAIL PROTECTED]>,
[EMAIL PROTECTED] writes:
> Stop Press. Latest Leaderboard:
> /-\ndrew 143.46
> `/anick143.53
>
> ^.^ :)))
>
> BTW, I symphathize with FatPhil. By a process
> akin to natural selection, the standard of
> golf is definitely going up. The weaker player
In article <[EMAIL PROTECTED]>,
Eugene van der Pijll <[EMAIL PROTECTED]> writes:
> En op 03 juli 2002 sprak Steffen Mueller:
>
>> This really isn't a new rule, I think. The rules never stated that your
>> entry isn't supposed to work on a very large number of nodes. In fact, we
>> deliber
In article <[EMAIL PROTECTED]>,
[EMAIL PROTECTED] writes:
>> program could in principle handle more, but the use of 10**7 allows them
>> to shave one stroke.
>
> If they have any sense, they'd hardcode it as 1e7...
>
Damn you ! I carefully tried not to give away *THE* essential optimiza
In article ,
Stephen Turner <[EMAIL PROTECTED]> writes:
> So, last month I annotated all the top 12 solutions. People seemed to
> appreciate it, but there's no way I've got time to do it again this month!
>
> So I thought it would be intere
In article <[EMAIL PROTECTED]>,
[EMAIL PROTECTED] writes:
> This month's update sees Ton cement his position as "The Alien" and
> Mtv leave no doubt whatsoever that he is indeed a bona fide alien.
>
Ok, that seems to put me ahead far enough. Therefore, I'll hereby
volunteer to make up th
In article <[EMAIL PROTECTED]>,
Dave Hoover <[EMAIL PROTECTED]> writes:
> Ton wrote:
>>Ok, that seems to put me ahead far enough. Therefore, I'll hereby
>>volunteer to make up the challenge and be referee for the next TPR.
>
> So when do we want to have the next tournament? The next iss
0: 41
1: 42
So you think you swing a mean club ? You think you can solve minigolfs
while still sleeping ? You jump large bunkers in a single stroke ?
Then try a *HARD* golf, the Iron Man Team Golf 1, at
http://www.xs4all.nl/~thospel/golf/irongolf1.html
Since even getting a working solution at all is not eas
my 41:
@F[y///c]++for glob"{,1}"x pop;print"@F\n"
@F[eval]++for glob"{,+1}"x pop;print"@F\n"
print"@{[$w=1,map$w*=$_/--$;,-pop..-1]}\n"
my 42:
@F[y///c]++for glob"{,1}"x~-pop;print"@F\n"
@F[eval]++for glob"{,+1}"x~-pop;print"@F\n"
Also fun are:
45 s/^/0 /,s/\d+/$&+$'/egfor($_="1\n")x pop;print
4
In article <[EMAIL PROTECTED]>,
Eugene van der Pijll <[EMAIL PROTECTED]> writes:
> 34 Eugene van der Pijll (rejected...)
> @a^+=(!$_,@a)for 0..pop;print"@a
> "
Interesting, a solution that will become valid after a bit of waiting.
In article <[EMAIL PROTECTED]>,
Eugene van der Pijll <[EMAIL PROTECTED]> writes:
> En op 11 juli 2002 sprak Chris Dolan:
>> #!perl
>> use Math::Random;
>> $z=pop;
>> map$_>0&&$_<$z&&$_[$_]++,random_normal 4e4,$z/2;
>> $_=int 0.5+$_/$_[-1]for@_;
>> print"@_\n"
>>
>> It *usually* succeeds u
In article <[EMAIL PROTECTED]>,
Chris Dolan <[EMAIL PROTECTED]> writes:
> Phil Carmody wrote:
>>
>> What is
>> @{[ ... ]}
>> ?
>>
>> It's not in perlsyn, perlop, perlvar ...
>>
>
> It's like this:
>
> $ref = [$w=1,map$w*=$_/--$;,-pop..-1];
> print "@$ref\n";
>
> only with an anony
In article <[EMAIL PROTECTED]>,
[EMAIL PROTECTED] writes:
>> Does anyone else want to claim a golf trick?
I claim:
$|-- and --$| as toggle.
~- as a prefix -1 construct (e.g. in ~-pop)
I would be surprised if these weren't known
before, but at least I discovered them independently.
In article <[EMAIL PROTECTED]>,
[EMAIL PROTECTED] writes:
> Setting $^I via -i switch: Karsten Sperling
Both Karsten and me learned this trick from suo (Jukka Suomela) on ircnet.
In article <[EMAIL PROTECTED]>,
[EMAIL PROTECTED] writes:
> En op 12 juli 2002 sprak The Alien:
>> I claim:
>> $|-- and --$| as toggle.
>> ~- as a prefix -1 construct (e.g. in ~-pop)
>
> Using -X to silence warnings: Ton Hospel (??)
At least I disc
Ah, like this i can in fact avoid the aliassing:
40: -l print$w=1,map{$",$w*=$_/--$n}-pop..-1
In article <[EMAIL PROTECTED]>,
"Terje Kristensen" <[EMAIL PROTECTED]> writes:
> I was by a little study of Eugene's solution i came up with this tho.
>
> -nl $h{$a}{$'}=/ /;$h{$'}{$`}++if$`ne$'}{sub
>z{map$y{$_}||=1/!$u{$_}+++z($_)+print,keys%{$h{+pop}}}z
>
> thats 100 .. wish i could
In article <[EMAIL PROTECTED]>,
Ala Qumsieh <[EMAIL PROTECTED]> writes:
> 93 -nl $h{$a}{$'}=/ /;$h{$'}{$`}+=$`ne$'}{sub
> z{map$y{$_}||=1/!$u{$_}+++&z+print,keys%{$h{$_}}}z
>
> --Ala
Nope. The value does in fact not matter, only if the element exists or not.
and adding 0 still creates i
It's that time of the month again:
volunteer referees, please step forward (or at last remain
standing while the rest steps backward).
Currently David Lowe bravely volunteered to undergo the alien
brain operation and assist me in this demanding job. But we need
more. Espcially people who can cov
In article <[EMAIL PROTECTED]>,
Michael W Thelen <[EMAIL PROTECTED]> writes:
> On Tue, Jul 16, 2002 at 09:45:21AM -0700, Rick Klement wrote:
>> But this seems to :)
>>
>> 21 print@h{<>}="",sort%h
>
> Here's a 20 that looks like it still has room for improvement:
>
> 20 \@h{<>},print so
In article <aguqmn$j6d$[EMAIL PROTECTED]>,
[EMAIL PROTECTED] (Ton Hospel) writes:
> Wish granted:
> 95 -nl $h{$a}{$'}=/ /;$h{$'}{$`}++if$`ne$'}{sub
>z{map$y{$_}||=1/!$u{$_}+++&z+print,keys%{$h{$_}}}z
>
Inspired by Michel Thelens sort and some
In article <ah21lr$iva$[EMAIL PROTECTED]>,
[EMAIL PROTECTED] (Ton Hospel) writes:
> 92 -nl \$1{!/ /}{$'};\${$`ne$'}{$'}{$`}}{sub
>z{map$y{$_}||=1/!$u{$_}+++&z+print,keys%{$1{$_}}}z
>
mm, combine,combine.
91 -nl ${$`ne$'}{$'}{$`}=\$1{!/ /}{
In article <aghspe$n56$[EMAIL PROTECTED]>,
[EMAIL PROTECTED] (Ton Hospel) writes:
> So you think you swing a mean club ? You think you can solve minigolfs
> while still sleeping ? You jump large bunkers in a single stroke ?
>
> Then try a *HARD* golf, the Iron Man Team
1 - 100 of 206 matches
Mail list logo