Initial commit

This commit is contained in:
Dimitri Lozeve 2024-11-12 21:43:32 +01:00
commit f242d2b0df
420 changed files with 62521 additions and 0 deletions

17
2023/day06/day06.bqn Normal file
View file

@ -0,0 +1,17 @@
Split•Import"../bqn-libs/strings.bqn"
input(0<)¨/¨" "Split¨10¨•FLines"input"
Times{𝕊td:
ab2÷˜+t(-+)(t×t)-4×d
aba,b
a+d=a×t-a
b-d=b×t-b
ab
}
input1>•ParseFloat¨¨input
•Show ×´1+|-´˘Times˘input1
input2•ParseFloat¨¨input
•Show 1+|-´Times input2

2
2023/day06/input Normal file
View file

@ -0,0 +1,2 @@
Time: 56 97 78 75
Distance: 546 1927 1131 1139

2
2023/day06/test Normal file
View file

@ -0,0 +1,2 @@
Time: 7 15 30
Distance: 9 40 200