i:0N 6#.(2!" !0:"')_1:"i/13.in"
s:{[a;d;b;e;c;f]((c*e)-b*f;(f*a)-c*d)%(a*e)-b*d}. / solve for (x;y) in ax+by=c, dx+ey=f
p:+//3 1*+_(&/'~1!)#s' / tokens needed to win all possible prizes
p a / part 1
p a+\:{4 2}#0 1e13 / part 2: add 1e13 to prize coordinates
I'm glad there were no linearly dependent vectors or coefficients that are 0 today :D
~/aoc24k/13.html