in reply to Friday Golf: All 2-digit combinations
79.
$_=join'',('00'..'99');1while(s/(..)(.*)\1/$1$2/);1while(s/(.)\1\1/$1$1/);print 123456789 123456789 123456789 123456789 123456789 123456789 123456789 123456789 |
75. (removed stupid parnes)
$_=join'','00'..'99';1while s/(..)(.*)\1/$1$2/;1while s/(.)\1\1/$1$1/;print 123456789 123456789 123456789 123456789 123456789 123456789 123456789 12345 |
He who asks will be a fool for five minutes, but he who doesn't ask will remain a fool for life.
Chady | http://chady.net/
|
---|
Replies are listed 'Best First'. | |
---|---|
Re^2: Friday Golf: All 2-digit combinations
by PhilHibbs (Hermit) on Sep 29, 2003 at 09:13 UTC |
In Section
Meditations