Re: anybody willing do some golfing?

[email protected] (Hubert depesz Lubaczewski)
Newsgroups perl.golf
Message-ID <[email protected]>
On Thu, Oct 24, 2002 at 11:18:45PM +0200, Hubert depesz Lubaczewski wrote:

just in case someone (hi chris) is interested.
we just finished this golf.
best score in-play was 88. in post-mortems we found 82.

if you're interested in code please look down. after spoiler space.

s
 
 
 
p
 
 
 
o
 
 
 
i
 
 
 
l
 
 
 
e
 
 
 
r
 
 
 
 
 
 
 
s
 
 
 
p
 
 
 
a
 
 
 
c
 
 
 
e
 
 
 


winning code is:
#!perl                                                                                               
split//,pop;$_=pop;s|.|$/=unpack(H2,$&^$_[($i=$a++%@_*2)<@_?$i:$#_-$i]).$/|sge;print$/

best as for now is:
#!perl -l                                                                                            
($_=pop).=reverse;s/(.)./$1/g;print unpack"H*",reverse$_ x1e4&(($q=pop)^~$q)^$q                      

depesz

-- 
hubert depesz lubaczewski                          http://www.depesz.pl/
------------------------------------------------------------------------
Mój Boże, spraw abym milczał, dopóki się nie upewnię,  że  naprawdę  mam
coś do powiedzenia.                                      (c) 1998 depesz
signature.asc (application/pgp-signature, 189 B)
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.0 (GNU/Linux)

iD8DBQE9ucAHKBwKA0prOAkRAjYCAJ9hr6DHl+onsmlo8A7VEQ+k2AEh4gCg1yrL
AHTcIkfFCsr/RIDTLtHJs2U=
=WmSm
-----END PGP SIGNATURE-----
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.