Paste: aoc1

Author: Krenium
Mode: factor
Date: Sun, 1 Dec 2019 06:45:25
Plain Text |
: fuel  ( m   -- n ) 3 /i 2 - 0 max [ f ] when-zero ;
: part1 ( seq -- n ) [ fuel ] map-sum ;
: part2 ( seq -- n ) [ [ fuel ] follow rest sum ] map-sum ;

New Annotation

Summary:
Author:
Mode:
Body: