reorg
parent
1d1c9d323b
commit
785ca6d6c0
@ -1,2 +1,2 @@
|
|||||||
#lang aoc-racket/2016/day01
|
#lang reader "lang.rkt"
|
||||||
R4, R5, L5, L5, L3, R2, R1, R1, L5, R5, R2, L1, L3, L4, R3, L1, L1, R2, R3, R3, R1, L3, L5, R3, R1, L1, R1, R2, L1, L4, L5, R4, R2, L192, R5, L2, R53, R1, L5, R73, R5, L5, R186, L3, L2, R1, R3, L3, L3, R1, L4, L2, R3, L5, R4, R3, R1, L1, R5, R2, R1, R1, R1, R3, R2, L1, R5, R1, L5, R2, L2, L4, R3, L1, R4, L5, R4, R3, L5, L3, R4, R2, L5, L5, R2, R3, R5, R4, R2, R1, L1, L5, L2, L3, L4, L5, L4, L5, L1, R3, R4, R5, R3, L5, L4, L3, L1, L4, R2, R5, R5, R4, L2, L4, R3, R1, L2, R5, L5, R1, R1, L1, L5, L5, L2, L1, R5, R2, L4, L1, R4, R3, L3, R1, R5, L1, L4, R2, L3, R5, R3, R1, L3
|
R4, R5, L5, L5, L3, R2, R1, R1, L5, R5, R2, L1, L3, L4, R3, L1, L1, R2, R3, R3, R1, L3, L5, R3, R1, L1, R1, R2, L1, L4, L5, R4, R2, L192, R5, L2, R53, R1, L5, R73, R5, L5, R186, L3, L2, R1, R3, L3, L3, R1, L4, L2, R3, L5, R4, R3, R1, L1, R5, R2, R1, R1, R1, R3, R2, L1, R5, R1, L5, R2, L2, L4, R3, L1, R4, L5, R4, R3, L5, L3, R4, R2, L5, L5, R2, R3, R5, R4, R2, R1, L1, L5, L2, L3, L4, L5, L4, L5, L1, R3, R4, R5, R3, L5, L4, L3, L1, L4, R2, R5, R5, R4, L2, L4, R3, R1, L2, R5, L5, R1, R1, L1, L5, L5, L2, L1, R5, R2, L4, L1, R4, R3, L3, R1, R5, L1, L4, R2, L3, R5, R3, R1, L3
|
@ -1,4 +1,4 @@
|
|||||||
#lang aoc-racket/2016/day02
|
#lang reader "lang-b.rkt"
|
||||||
DLRRRRLRLDRRRURRURULRLLULUURRRDDLDULDULLUUDLURLURLLDLUUUDUUUULDRDUUDUDDRRLRDDDUDLDLLRUURDRULUULRLRDULULLRLRLRLDRLUULDLDDDDRRLRUUUDDRURRULLLRURLUURULLRLUDDLDRUULDRURULRRRLLLRDLULDRRDDUDLURURLDULDRDRLDDUURRDUDDRDUURDULDUURDUDRDRULDUDUULRRULUUURDUURUDLDURDLRLURUUDRRDLRUDRULRURLDLLDLLRRDRDRLRRRULDRRLDUURLUUDLUUDDLLRULRDUUDURURLUURDRRRUDLRDULRRRLDRDULRUUDDDLRDUULDRLLDRULUULULRDRUUUULULLRLLLRUURUULRRLDDDRULRRRUDURUR
|
DLRRRRLRLDRRRURRURULRLLULUURRRDDLDULDULLUUDLURLURLLDLUUUDUUUULDRDUUDUDDRRLRDDDUDLDLLRUURDRULUULRLRDULULLRLRLRLDRLUULDLDDDDRRLRUUUDDRURRULLLRURLUURULLRLUDDLDRUULDRURULRRRLLLRDLULDRRDDUDLURURLDULDRDRLDDUURRDUDDRDUURDULDUURDUDRDRULDUDUULRRULUUURDUURUDLDURDLRLURUUDRRDLRUDRULRURLDLLDLLRRDRDRLRRRULDRRLDUURLUUDLUUDDLLRULRDUUDURURLUURDRRRUDLRDULRRRLDRDULRUUDDDLRDUULDRLLDRULUULULRDRUUUULULLRLLLRUURUULRRLDDDRULRRRUDURUR
|
||||||
RULRUUUDLLUDURDRDDLLRLLUDRUDDRLRRDLDLDRDULDLULURDLUDDDUULURLDRUUURURLLRRDDDUUDRLRLLDLDRDDDRDUDLRDRDLLLDDLDUDDRUDUUDLLLLLDULRLURRRLLURUUULUDRLRLRLURRDRLLLRLLULRLLLDDLRLRDLUUUUUDULULDDULLUDUURDLRUDLRUDLRLLRLDLULRLDUDRURURDLRULDLULULDLLDLDLDLLLUDUDDLRLRRDULLUDRDDLLLDUURDULUDURLLLDRUDDDLRLULDLDRRDDDRDULDDUDRDDULLULRRLRUULRDUDURUDULUDUDURLDRDUUDDRRLRURDRRLRDDDDRUDLUDLDDLRDLUUDLRRURDDLURDLRDLLRDRDLDLDUUUURULUULDDDDLDULUURRRULUDLLLDRULDRURL
|
RULRUUUDLLUDURDRDDLLRLLUDRUDDRLRRDLDLDRDULDLULURDLUDDDUULURLDRUUURURLLRRDDDUUDRLRLLDLDRDDDRDUDLRDRDLLLDDLDUDDRUDUUDLLLLLDULRLURRRLLURUUULUDRLRLRLURRDRLLLRLLULRLLLDDLRLRDLUUUUUDULULDDULLUDUURDLRUDLRUDLRLLRLDLULRLDUDRURURDLRULDLULULDLLDLDLDLLLUDUDDLRLRRDULLUDRDDLLLDUURDULUDURLLLDRUDDDLRLULDLDRRDDDRDULDDUDRDDULLULRRLRUULRDUDURUDULUDUDURLDRDUUDDRRLRURDRRLRDDDDRUDLUDLDDLRDLUUDLRRURDDLURDLRDLLRDRDLDLDUUUURULUULDDDDLDULUURRRULUDLLLDRULDRURL
|
||||||
RRRLRDLLDUURDRRRLURDUULUDURDRRUUDURURRLDLLDRDLRRURDDUDDURLRUUDDULULRUUDRLUUDDLLDDDLRRRDLLLLLLRRURDULDLURRURRDDLDDDUDURRDURRRLUDRRULLRULDRLULRULDDRLLRDLRDUURULURLUURLRRULDULULUULDUDLRLDRDDRRRUUULULDUURLRLLURRLURDUUDDDRUULDLLLDRUURLRRLLDDUDRDLDDDULDRDDDUDRRLLLULURDUDLLUUURRLDULURURDDLUDLLRLDRULULURDLDRLURDLRRDRRUULLULDLURRDDUDRDDDLDUDLDRRUDRULDLDULRLLRRRRDDRLUURRRRDDLLRUURRLRURULDDULRLULRURRUULDUUDURDRRLRLUDRULDRUULUUDRDURDURRLULDDDULDDLRDURRUUUUUDDRRDLRDULUUDDL
|
RRRLRDLLDUURDRRRLURDUULUDURDRRUUDURURRLDLLDRDLRRURDDUDDURLRUUDDULULRUUDRLUUDDLLDDDLRRRDLLLLLLRRURDULDLURRURRDDLDDDUDURRDURRRLUDRRULLRULDRLULRULDDRLLRDLRDUURULURLUURLRRULDULULUULDUDLRLDRDDRRRUUULULDUURLRLLURRLURDUUDDDRUULDLLLDRUURLRRLLDDUDRDLDDDULDRDDDUDRRLLLULURDUDLLUUURRLDULURURDDLUDLLRLDRULULURDLDRLURDLRRDRRUULLULDLURRDDUDRDDDLDUDLDRRUDRULDLDULRLLRRRRDDRLUURRRRDDLLRUURRLRURULDDULRLULRURRUULDUUDURDRRLRLUDRULDRUULUUDRDURDURRLULDDDULDDLRDURRUUUUUDDRRDLRDULUUDDL
|
@ -1,4 +1,4 @@
|
|||||||
#lang aoc-racket/2016/day02b
|
#lang reader "lang.rkt"
|
||||||
DLRRRRLRLDRRRURRURULRLLULUURRRDDLDULDULLUUDLURLURLLDLUUUDUUUULDRDUUDUDDRRLRDDDUDLDLLRUURDRULUULRLRDULULLRLRLRLDRLUULDLDDDDRRLRUUUDDRURRULLLRURLUURULLRLUDDLDRUULDRURULRRRLLLRDLULDRRDDUDLURURLDULDRDRLDDUURRDUDDRDUURDULDUURDUDRDRULDUDUULRRULUUURDUURUDLDURDLRLURUUDRRDLRUDRULRURLDLLDLLRRDRDRLRRRULDRRLDUURLUUDLUUDDLLRULRDUUDURURLUURDRRRUDLRDULRRRLDRDULRUUDDDLRDUULDRLLDRULUULULRDRUUUULULLRLLLRUURUULRRLDDDRULRRRUDURUR
|
DLRRRRLRLDRRRURRURULRLLULUURRRDDLDULDULLUUDLURLURLLDLUUUDUUUULDRDUUDUDDRRLRDDDUDLDLLRUURDRULUULRLRDULULLRLRLRLDRLUULDLDDDDRRLRUUUDDRURRULLLRURLUURULLRLUDDLDRUULDRURULRRRLLLRDLULDRRDDUDLURURLDULDRDRLDDUURRDUDDRDUURDULDUURDUDRDRULDUDUULRRULUUURDUURUDLDURDLRLURUUDRRDLRUDRULRURLDLLDLLRRDRDRLRRRULDRRLDUURLUUDLUUDDLLRULRDUUDURURLUURDRRRUDLRDULRRRLDRDULRUUDDDLRDUULDRLLDRULUULULRDRUUUULULLRLLLRUURUULRRLDDDRULRRRUDURUR
|
||||||
RULRUUUDLLUDURDRDDLLRLLUDRUDDRLRRDLDLDRDULDLULURDLUDDDUULURLDRUUURURLLRRDDDUUDRLRLLDLDRDDDRDUDLRDRDLLLDDLDUDDRUDUUDLLLLLDULRLURRRLLURUUULUDRLRLRLURRDRLLLRLLULRLLLDDLRLRDLUUUUUDULULDDULLUDUURDLRUDLRUDLRLLRLDLULRLDUDRURURDLRULDLULULDLLDLDLDLLLUDUDDLRLRRDULLUDRDDLLLDUURDULUDURLLLDRUDDDLRLULDLDRRDDDRDULDDUDRDDULLULRRLRUULRDUDURUDULUDUDURLDRDUUDDRRLRURDRRLRDDDDRUDLUDLDDLRDLUUDLRRURDDLURDLRDLLRDRDLDLDUUUURULUULDDDDLDULUURRRULUDLLLDRULDRURL
|
RULRUUUDLLUDURDRDDLLRLLUDRUDDRLRRDLDLDRDULDLULURDLUDDDUULURLDRUUURURLLRRDDDUUDRLRLLDLDRDDDRDUDLRDRDLLLDDLDUDDRUDUUDLLLLLDULRLURRRLLURUUULUDRLRLRLURRDRLLLRLLULRLLLDDLRLRDLUUUUUDULULDDULLUDUURDLRUDLRUDLRLLRLDLULRLDUDRURURDLRULDLULULDLLDLDLDLLLUDUDDLRLRRDULLUDRDDLLLDUURDULUDURLLLDRUDDDLRLULDLDRRDDDRDULDDUDRDDULLULRRLRUULRDUDURUDULUDUDURLDRDUUDDRRLRURDRRLRDDDDRUDLUDLDDLRDLUUDLRRURDDLURDLRDLLRDRDLDLDUUUURULUULDDDDLDULUURRRULUDLLLDRULDRURL
|
||||||
RRRLRDLLDUURDRRRLURDUULUDURDRRUUDURURRLDLLDRDLRRURDDUDDURLRUUDDULULRUUDRLUUDDLLDDDLRRRDLLLLLLRRURDULDLURRURRDDLDDDUDURRDURRRLUDRRULLRULDRLULRULDDRLLRDLRDUURULURLUURLRRULDULULUULDUDLRLDRDDRRRUUULULDUURLRLLURRLURDUUDDDRUULDLLLDRUURLRRLLDDUDRDLDDDULDRDDDUDRRLLLULURDUDLLUUURRLDULURURDDLUDLLRLDRULULURDLDRLURDLRRDRRUULLULDLURRDDUDRDDDLDUDLDRRUDRULDLDULRLLRRRRDDRLUURRRRDDLLRUURRLRURULDDULRLULRURRUULDUUDURDRRLRLUDRULDRUULUUDRDURDURRLULDDDULDDLRDURRUUUUUDDRRDLRDULUUDDL
|
RRRLRDLLDUURDRRRLURDUULUDURDRRUUDURURRLDLLDRDLRRURDDUDDURLRUUDDULULRUUDRLUUDDLLDDDLRRRDLLLLLLRRURDULDLURRURRDDLDDDUDURRDURRRLUDRRULLRULDRLULRULDDRLLRDLRDUURULURLUURLRRULDULULUULDUDLRLDRDDRRRUUULULDUURLRLLURRLURDUUDDDRUULDLLLDRUURLRRLLDDUDRDLDDDULDRDDDUDRRLLLULURDUDLLUUURRLDULURURDDLUDLLRLDRULULURDLDRLURDLRRDRRUULLULDLURRDDUDRDDDLDUDLDRRUDRULDLDULRLLRRRRDDRLUURRRRDDLLRUURRLRURULDDULRLULRURRUULDUUDURDRRLRLUDRULDRUULUUDRDURDURRLULDDDULDDLRDURRUUUUUDDRRDLRDULUUDDL
|
@ -1,4 +1,4 @@
|
|||||||
#lang aoc-racket/2016/day03
|
#lang reader "lang-b.rkt"
|
||||||
4 21 894
|
4 21 894
|
||||||
419 794 987
|
419 794 987
|
||||||
424 797 125
|
424 797 125
|
@ -1,4 +1,4 @@
|
|||||||
#lang aoc-racket/2016/day03b
|
#lang reader "lang.rkt"
|
||||||
4 21 894
|
4 21 894
|
||||||
419 794 987
|
419 794 987
|
||||||
424 797 125
|
424 797 125
|
@ -1,4 +1,4 @@
|
|||||||
#lang aoc-racket/2016/day04
|
#lang reader "lang.rkt"
|
||||||
bkwzkqsxq-tovvilokx-nozvyiwoxd-172[fstek]
|
bkwzkqsxq-tovvilokx-nozvyiwoxd-172[fstek]
|
||||||
wifilzof-wbiwifuny-yhachyylcha-526[qrazx]
|
wifilzof-wbiwifuny-yhachyylcha-526[qrazx]
|
||||||
jvyyvzpcl-jhukf-shivyhavyf-487[zhtsi]
|
jvyyvzpcl-jhukf-shivyhavyf-487[zhtsi]
|
@ -1,4 +1,4 @@
|
|||||||
#lang aoc-racket/2016/day04
|
#lang reader "lang.rkt"
|
||||||
aaaaa-bbb-z-y-x-123[abxyz]
|
aaaaa-bbb-z-y-x-123[abxyz]
|
||||||
a-b-c-d-e-f-g-h-987[abcde]
|
a-b-c-d-e-f-g-h-987[abcde]
|
||||||
not-a-real-room-404[oarel]
|
not-a-real-room-404[oarel]
|
@ -1,2 +0,0 @@
|
|||||||
#lang aoc-racket/2016/day05
|
|
||||||
ojvtpuvg
|
|
@ -0,0 +1,2 @@
|
|||||||
|
#lang reader "lang.rkt"
|
||||||
|
ojvtpuvg
|
@ -1,11 +1,10 @@
|
|||||||
#lang br/quicklang
|
#lang br/quicklang
|
||||||
(require openssl/md5)
|
(require openssl/md5)
|
||||||
|
(provide read-syntax)
|
||||||
(define (read-syntax path port)
|
(define (read-syntax path port)
|
||||||
(strip-bindings
|
(strip-bindings
|
||||||
#`(module mod "day05.rkt"
|
#`(module mod "lang.rkt"
|
||||||
(solve #,(string-trim (port->string port))))))
|
(solve #,(string-trim (port->string port))))))
|
||||||
(module+ reader (provide read-syntax))
|
|
||||||
|
|
||||||
(provide #%module-begin)
|
(provide #%module-begin)
|
||||||
|
|
@ -1,4 +1,4 @@
|
|||||||
#lang aoc-racket/2016/day06
|
#lang reader "lang.rkt"
|
||||||
focdealm
|
focdealm
|
||||||
ggsipflx
|
ggsipflx
|
||||||
rvibwxbm
|
rvibwxbm
|
@ -1,8 +1,8 @@
|
|||||||
#lang br/quicklang
|
#lang br/quicklang
|
||||||
|
(provide read-syntax)
|
||||||
(define (read-syntax path port)
|
(define (read-syntax path port)
|
||||||
(strip-bindings
|
(strip-bindings
|
||||||
#`(module mod "day06.rkt"
|
#`(module mod "lang.rkt"
|
||||||
(solve #,@(string-split (port->string port))))))
|
(solve #,@(string-split (port->string port))))))
|
||||||
(module+ reader (provide read-syntax))
|
(module+ reader (provide read-syntax))
|
||||||
|
|
@ -1,4 +1,4 @@
|
|||||||
#lang aoc-racket/2016/day06
|
#lang reader "lang.rkt"
|
||||||
eedadn
|
eedadn
|
||||||
drvtee
|
drvtee
|
||||||
eandsr
|
eandsr
|
@ -1,5 +0,0 @@
|
|||||||
#lang aoc-racket/2016/day07
|
|
||||||
abba[mnop]qrst
|
|
||||||
abcd[bddb]xyyx
|
|
||||||
aaaa[qwer]tyui
|
|
||||||
ioxxoj[asdfgh]zxcvbn
|
|
@ -1,4 +1,4 @@
|
|||||||
#lang aoc-racket/2016/day07
|
#lang reader "lang.rkt"
|
||||||
dnwtsgywerfamfv[gwrhdujbiowtcirq]bjbhmuxdcasenlctwgh
|
dnwtsgywerfamfv[gwrhdujbiowtcirq]bjbhmuxdcasenlctwgh
|
||||||
rnqfzoisbqxbdlkgfh[lwlybvcsiupwnsyiljz]kmbgyaptjcsvwcltrdx[ntrpwgkrfeljpye]jxjdlgtntpljxaojufe
|
rnqfzoisbqxbdlkgfh[lwlybvcsiupwnsyiljz]kmbgyaptjcsvwcltrdx[ntrpwgkrfeljpye]jxjdlgtntpljxaojufe
|
||||||
jgltdnjfjsbrffzwbv[nclpjchuobdjfrpavcq]sbzanvbimpahadkk[yyoasqmddrzunoyyk]knfdltzlirrbypa
|
jgltdnjfjsbrffzwbv[nclpjchuobdjfrpavcq]sbzanvbimpahadkk[yyoasqmddrzunoyyk]knfdltzlirrbypa
|
@ -1,9 +1,9 @@
|
|||||||
#lang br/quicklang
|
#lang br/quicklang
|
||||||
|
|
||||||
(module+ reader (provide read-syntax))
|
(provide read-syntax)
|
||||||
(define (read-syntax path port)
|
(define (read-syntax path port)
|
||||||
(strip-bindings
|
(strip-bindings
|
||||||
#`(module mod "day07.rkt"
|
#`(module mod "lang.rkt"
|
||||||
#,@(for/list ([ip (in-lines port)]
|
#,@(for/list ([ip (in-lines port)]
|
||||||
#:when (not (equal? ip "")))
|
#:when (not (equal? ip "")))
|
||||||
ip))))
|
ip))))
|
@ -0,0 +1,5 @@
|
|||||||
|
#lang reader "lang.rkt"
|
||||||
|
abba[mnop]qrst
|
||||||
|
abcd[bddb]xyyx
|
||||||
|
aaaa[qwer]tyui
|
||||||
|
ioxxoj[asdfgh]zxcvbn
|
@ -1,4 +1,4 @@
|
|||||||
#lang aoc-racket/2016/day08
|
#lang reader "lang.rkt"
|
||||||
rect 1x1
|
rect 1x1
|
||||||
rotate row y=0 by 20
|
rotate row y=0 by 20
|
||||||
rect 1x1
|
rect 1x1
|
@ -1,9 +1,8 @@
|
|||||||
#lang br/quicklang
|
#lang br/quicklang
|
||||||
|
(provide read-syntax)
|
||||||
(module+ reader (provide read-syntax))
|
|
||||||
(define (read-syntax path port)
|
(define (read-syntax path port)
|
||||||
(strip-bindings
|
(strip-bindings
|
||||||
#`(module mod "day08.rkt"
|
#`(module mod "lang.rkt"
|
||||||
#,@(for/list ([inst (in-lines port)]
|
#,@(for/list ([inst (in-lines port)]
|
||||||
#:when (not (equal? inst "")))
|
#:when (not (equal? inst "")))
|
||||||
(format-datum '(~a) inst)))))
|
(format-datum '(~a) inst)))))
|
@ -1,4 +1,4 @@
|
|||||||
#lang aoc-racket/2016/day08
|
#lang reader "lang.rkt"
|
||||||
rect 3x2
|
rect 3x2
|
||||||
rotate column x=1 by 1
|
rotate column x=1 by 1
|
||||||
rotate row y=0 by 4
|
rotate row y=0 by 4
|
@ -1,2 +0,0 @@
|
|||||||
#lang aoc-racket/2016/day09
|
|
||||||
(27x12)(20x12)(13x14)(7x10)(1x12)A
|
|
File diff suppressed because one or more lines are too long
@ -1,10 +1,9 @@
|
|||||||
#lang br/quicklang
|
#lang br/quicklang
|
||||||
(require racket/string)
|
(require racket/string)
|
||||||
|
(provide read-syntax)
|
||||||
(module+ reader (provide read-syntax))
|
|
||||||
(define (read-syntax path port)
|
(define (read-syntax path port)
|
||||||
(strip-bindings
|
(strip-bindings
|
||||||
#`(module mod "day09.rkt"
|
#`(module mod "lang.rkt"
|
||||||
#,@(for/list ([str (in-lines port)]
|
#,@(for/list ([str (in-lines port)]
|
||||||
#:when (not (equal? str "")))
|
#:when (not (equal? str "")))
|
||||||
`(solve ,(string-trim str))))))
|
`(solve ,(string-trim str))))))
|
@ -0,0 +1,2 @@
|
|||||||
|
#lang reader "lang.rkt"
|
||||||
|
(27x12)(20x12)(13x14)(7x10)(1x12)A
|
@ -0,0 +1,2 @@
|
|||||||
|
#lang reader "lang.rkt"
|
||||||
|
ahsbgdzn
|
@ -0,0 +1,15 @@
|
|||||||
|
#lang br/quicklang
|
||||||
|
(require openssl/md5)
|
||||||
|
;; http://adventofcode.com/2016/day/13
|
||||||
|
(require graph)
|
||||||
|
(provide read-syntax
|
||||||
|
(rename-out [mb #%module-begin]))
|
||||||
|
|
||||||
|
(define (read-syntax path port)
|
||||||
|
(strip-bindings
|
||||||
|
#`(module mod "lang.rkt"
|
||||||
|
#,(string-trim (port->string port)))))
|
||||||
|
|
||||||
|
(define-macro (mb SALT)
|
||||||
|
#'(#%module-begin
|
||||||
|
(md5 (open-input-string SALT))))
|
@ -0,0 +1,2 @@
|
|||||||
|
#lang reader "lang.rkt"
|
||||||
|
abc
|
Reference in New Issue