+/AoC

advent of code

git clone https://git.julia.blue/+/AoC

Joseph RyanStart 2023!c203ef0

master
201 B10 linesraw
1#!/usr/bin/env jconsole
2load '../util.ijs'
3b =: 2+a=:4*i.(#in)%4
4f =: {{(a.i.y{in)-a.i.x}}
5them =: 'A'f a
6me =: 'X'f b
7vs =: {{+/(3*x=y)+(6*x=3|>:y)+>:x}}
8ans me vs them
9ans them vs~3|them+2+me
10exit''