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.