Skip to content

Commit

Permalink
feat: minimal improvements.
Browse files Browse the repository at this point in the history
  • Loading branch information
Panadestein committed Dec 7, 2024
1 parent 6ed5b90 commit 45b5560
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions src/aoc24.org
Original file line number Diff line number Diff line change
Expand Up @@ -141,8 +141,8 @@ to get more context. These definitions and imports are shared by the various puz
VII ← {
inp ← (⋈○(•ParseFloat¨' '⊸Split)´':'⊸Split)¨•FLines Input𝕩
C ← ⊢+⊣×10⊸⋆⟜(⌊1+10⋆⁼1⌈|)
eins ⇐ +´{⊑𝕨∊(+∾×)˜´⌽𝕩?⊑𝕨;0}´¨ inp
zwei ⇐ +´{⊑𝕨∊(∾C⋈+∾×)˜´⌽𝕩?⊑𝕨;0}´¨ inp
eins ⇐ +´{⊑𝕨∊(+∾×)´⌽𝕩?⊑𝕨;0}´¨ inp
zwei ⇐ +´{⊑𝕨∊(∾C˜⋈+∾×)´⌽𝕩?⊑𝕨;0}´¨ inp
}
VII _is 7
#+end_src
Expand Down
4 changes: 2 additions & 2 deletions src/bqn/aoc24.bqn
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ VI _is 6
VII ← {
inp ← ((•ParseFloat¨' 'Split)´':'Split)¨•FLines Input𝕩
C⊢+⊣×10(1+101⌈|)
eins+´{𝕨(+∾×)˜´𝕩?𝕨;0}´¨ inp
zwei+´{𝕨(∾C⋈+∾×)˜´𝕩?𝕨;0}´¨ inp
eins+´{𝕨(+∾×)´𝕩?𝕨;0}´¨ inp
zwei+´{𝕨(∾C˜⋈+∾×)´𝕩?𝕨;0}´¨ inp
}
VII _is 7

0 comments on commit 45b5560

Please sign in to comment.