Skip to content

Commit a5dc96b

Browse files
committed
2024D07 med reell input
1 parent 60ddd46 commit a5dc96b

File tree

2 files changed

+4
-7
lines changed

2 files changed

+4
-7
lines changed

input/2024/input7.nippy

21.1 KB
Binary file not shown.

notebooks/y2024/d07.clj

+4-7
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,8 @@
11
^{:nextjournal.clerk/visibility {:code :hide}}
22
(ns y2024.d07
33
(:require
4-
[nextjournal.clerk :as clerk]))
4+
[nextjournal.clerk :as clerk]
5+
[advent-of-code-clj.input :as input]))
56

67
; # 2024, dag 7
78

@@ -65,9 +66,7 @@
6566

6667
; Som gir oss svaret på reell input:
6768

68-
^{:nextjournal.clerk/visibility {:result :hide}}
69-
(comment
70-
(= 1038838357795 (solve [+ *] (slurp "input/2024/input7.txt"))))
69+
(= 1038838357795 (solve [+ *] (input/get-input 2024 7)))
7170

7271
; ## Del 2
7372

@@ -97,6 +96,4 @@
9796

9897
; Og riktig svar på reell input:
9998

100-
^{:nextjournal.clerk/visibility {:result :hide}}
101-
(comment
102-
(= 254136560217241 (solve [+ * ||] (slurp "input/2024/input7.txt"))))
99+
(= 254136560217241 (solve [+ * ||] (input/get-input 2024 7)))

0 commit comments

Comments
 (0)