parent
b8cd0faa3e
commit
c87d7854bf
@ -0,0 +1,4 @@
|
||||
&fras "../day_04.txt"
|
||||
|
||||
# 36 numbers per card is 1 card id, 10 winning numbers, and 25 card numbers
|
||||
/+≡(⌊ⁿ:2-1/+∊⊃↙↘10↘1) ↯¯1_36 ∵(parse⊔) regex "\\d+"
|
@ -0,0 +1,9 @@
|
||||
Input ← regex"\\d+" &fras "../day_06.txt"
|
||||
|
||||
# part one
|
||||
Races ← ⍉↯2_¯1 ⊐∵⋕ Input
|
||||
/×≡(/+<×⊙-.⇡.⍘⊟) Races
|
||||
|
||||
# part two
|
||||
Races ← ∵⋕⊐≡/⊂ ↯2_¯1 Input
|
||||
/+<×⊙-.⇡.⍘⊟ Races
|
Loading…
Reference in new issue