Long stairs: Difference between revisions

m
→‎{{header|Raku}}: pre-increment is cheaper than post increment (though the difference is miniscule)
(→‎{{header|Raku}}: Add a Raku example)
m (→‎{{header|Raku}}: pre-increment is cheaper than post increment (though the difference is miniscule))
Line 181:
 
loop {
$seconds++$seconds;
$location++$location;
last if $location > $stairs;
for (^$stairs).roll(5) {
$location++$location if $_ <= $location;
$stairs++$stairs;
}
say " $seconds $location {$stairs-$location}" if !$_ && (599 < $seconds < 610);
10,333

edits