Skip to content

Commit

Permalink
Day 14 solution based on JW Buitenhuis's K solution.
Browse files Browse the repository at this point in the history
  • Loading branch information
jayfoad committed Dec 14, 2018
1 parent fd1e99f commit 2337291
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 0 deletions.
12 changes: 12 additions & 0 deletions p14.dyalog
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
⎕IO0
input⊃⊃⎕NGET'p14.txt'1
scores3 7

nxt{(scores)|+1+curscores,(t<10)10 10t+/curscores[]}
super{nxt(0.2×scores)}
possuper{input<¯10+scores}0 1
¨r10inputscores part 1

match¨input
{}super{/matchscores}pos
matchscores part 2
1 change: 1 addition & 0 deletions p14.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
640441

0 comments on commit 2337291

Please sign in to comment.