Dusty Shed

Published

December 1, 2026

library(mistlecode)

options(scipen = 999)

Part 1

I didn’t even bother staying up for this given how much of a mess last year’s was and it turns out I should’ve because it was super easy.

'input.txt' |>
  readLines() |>
  as.numeric() |>
  table() |>
  sort(decreasing = TRUE) |>
  head(3) |>
  names() |>
  as.numeric() |>
  prod()
[1] 125968030

Part 2

24 seconds and I wasn’t even trying to go fast…

'input.txt' |>
  readLines() |>
  as.numeric() |>
  table() |>
  sort() |>
  head(3) |>
  names() |>
  as.numeric() |>
  prod()
[1] 40129375