2024 day 14

This commit is contained in:
Dimitri Lozeve 2024-12-14 09:47:13 +01:00
parent e479454d81
commit 998d695685
3 changed files with 522 additions and 0 deletions

10
2024/day14/day14.bqn Normal file
View file

@ -0,0 +1,10 @@
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