|
(def sorted-totals (sort (map #(reduce + %) (map #(map read-string %) (map clojure.string/split-lines (clojure.string/split (slurp "input/1") #"\n\n"))))))
|
|
(println (last sorted-totals)) ; Part 1
|
|
(println (reduce + (take-last 3 sorted-totals))) ; Part 2 |