You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
advent-of-code/2023/uiua/day_04.ua

5 lines
174 B

12 months ago
&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+"