nr:*&~#'d:0:"05.in"
rng@:<rng:`I$"-"\'nr# d
ids:`I$(nr+1)_d
merge:{:[~#:y
,x
x[1]<y[0;0]-1
(,x),o[*y;1_y]
o[x[0],(x[1]|y[0;1])
1_y]]}
:one:+/|/+({~(z<x)|z>y}.'rng)@\:/:ids
:two:+/1+--/'merge[*rng;1_rng]

#AdventOfCode #AoC2025 #APLJK

@jstepien what the actual.
@bocs a fair question to ask.
@bocs @jstepien Line noise that passes tests! 😀

@jstepien well, thanks for nerdsniping me:

(rng;ing):"\n"\'"\n\n"\1:"day05.small"
ing:`I$ing
rng:`I$"-"\'rng

+/|/(0 1~)''+ing<\:rng
+//-1 1*+0N 2#|\,/(+0 1++rng)@<*'rng