2020-12-02 10:07:35 +00:00
|
|
|
#lang curly-fn racket
|
2020-12-01 21:33:57 +00:00
|
|
|
|
2020-12-02 08:49:57 +00:00
|
|
|
(require "scripts/aoc.rkt")
|
|
|
|
|
2020-12-01 21:33:57 +00:00
|
|
|
;; solution for day @day
|
|
|
|
|
2020-12-02 08:49:57 +00:00
|
|
|
(define (part1 input)
|
|
|
|
;; ...
|
|
|
|
(void))
|
|
|
|
|
|
|
|
(define (part2 input)
|
|
|
|
;; ...
|
|
|
|
(void))
|
|
|
|
|
2020-12-12 06:07:11 +00:00
|
|
|
;; parse input file
|
|
|
|
(define (parse fname)
|
|
|
|
(define input (file->... fname))
|
|
|
|
(void input))
|
|
|
|
|
2020-12-02 08:02:58 +00:00
|
|
|
(module+ test
|
|
|
|
(require rackunit)
|
|
|
|
;; tests here
|
2020-12-02 08:49:57 +00:00
|
|
|
(displayln "no tests :("))
|
2020-12-02 08:02:58 +00:00
|
|
|
|
2020-12-01 21:33:57 +00:00
|
|
|
(module+ main
|
2020-12-12 06:07:11 +00:00
|
|
|
(define input (parse "inputs/@day"))
|
2020-12-12 06:52:02 +00:00
|
|
|
(answer @day 1 (time (part1 input)))
|
|
|
|
(answer @day 2 (time (part2 input)))
|
2020-12-01 21:33:57 +00:00
|
|
|
(displayln "meow"))
|