Looks great! Was there a 12 day?This is how I fared using rather rough-and-ready Python on a Raspbery Pi 5:Times for both parts, including startup and reading the input.Code:
Day Lines Run time 1 30 0.015s 2 29 0.012s 3 23 0.025s 4 57 0.163s 5 49 0.017s 6 43 0.023s 7 31 0.016s 8 69 1.909s 9 83 3.628s <-- not quite a general solution10 206 192m20.243s <-- ugh11 39 0.026s
I found days 9 and 10 pretty tough. There must be some clever trick for speeding up day 10, which I have missed!
Statistics: Posted by ejolson — Fri Dec 12, 2025 8:18 pm