src/2019/days/day-09.lisp @ 2848a4548adf

2023/01 and 2022/01

Also start porting my test data to the new account, since Twitter imploded and
apparently it's impossible for a website to store a goddamn username and
password in The Year of Our Lord 2023 so everyone just outsources auth all
the time, ugh.
author Steve Losh <steve@stevelosh.com>
date Fri, 01 Dec 2023 11:05:43 -0500
parents 182bdd87fd9e
children (none)
(advent:defpackage* :advent/2019/09)
(in-package :advent/2019/09)

(define-problem (2019 9) (data read-numbers) (2955820355 46643)
  (values
    (first (gathering
             (advent/intcode:run data
                                 :input (constantly 1)
                                 :output #'gather)))
    (first (gathering
             (advent/intcode:run data
                                 :input (constantly 2)
                                 :output #'gather)))))


#; Scratch --------------------------------------------------------------------

(let ((advent/intcode:*trace* nil))
  (run '(109 1 204 -1 1001 100 1 100 1008 100 16 101 1006 101 0 99)))

(let ((advent/intcode:*trace* nil))
  (run '(1102 34915192 34915192 7 4 7 99 0)))

(let ((advent/intcode:*trace* t))
  (run '(104 1125899906842624 99)))