develooper Front page | | Postings from July 2002

Re: It's so simple ! It can't be that hard !

Thread Previous | Thread Next
July 31, 2002 16:48
Re: It's so simple ! It can't be that hard !
Message ID:
In article <3D489DD0.31941.3D979FD@localhost>,
	"Markus Laire" <> writes:
> My first post here, and also first try in golfing so this isn't too good ;)
> $/=pop;$,=pop;for$i(0..15){
> ($_=sprintf'%04b',$i)=~s/(.)(.)(.)(.)/$1$2\n$3$4\n/;
> y/01/.O/,print,last,if$/eq$1+$2.($3+$4)&&$,eq$1+$3.($2+$4)}
> btw, how is the score calculated?
Get a counting program at,
General golf rules are at

Don't look around too much in that directory unless you want to find
the list of solutions to this problem though.

Thread Previous | Thread Next Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at | Group listing | About