in reply to Golf: Buying with exact change
sub largest {my$r;$r.='('.5x$_.')*'for@_;for($i=1000;;$i--){return$i if(5x$i)!~/^$r$/}}
-Mark
|
---|
Replies are listed 'Best First'. | |
---|---|
Re^2: Golf: Buying with exact change
by !1 (Hermit) on Feb 22, 2005 at 02:08 UTC | |
by Thelonious (Scribe) on Feb 22, 2005 at 05:02 UTC |