advent-of-code/2024/day14/day14.bqn
2024-12-14 09:48:45 +01:00

10 lines
406 B
BQN
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

Split((-˜+`׬)=)
in>•ParseFloat¨¨¨','Split¨¨2¨¨' 'Split¨•FLines"input"
size101103
Step{n𝕊pv: size|p+n×v}
p1100 Step˘in
•Show ×´/(size÷2)<˘(´˘(size÷2)˘p1)/p1
•Show n1 ¨{𝕩Step˘in}¨10000
•Out 1(@+10)˘<˘" #"¨+˝{1+(𝕩)size0}˘n Step˘in