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/day01/day01.bqn Normal file
View file

@ -0,0 +1,17 @@
i•FLines"input"
# Part 1
•Show +´+´¨101ר'0'-˜()¨(('0'+10)/)¨i
# Part 2
ExtractNums{
n𝕊"": n;
n𝕊s:
digit+´
{"one": 1; "two": 2; "six": 6; 0}3s,
{"four": 4; "five": 5; "nine": 9; 0}4s,
{"three": 3; "seven": 7; "eight": 8; 0}5s,
{"1": 1; "2": 2; "3": 3; "4": 4; "5": 5; "6": 6; "7": 7; "8": 8; "9": 9; 0}1s,
((digit=0)ndigit,n) 𝕊 1s
}
•Show +´+´¨101ר()¨ExtractNums¨i