We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 60ddd46 commit a5dc96bCopy full SHA for a5dc96b
input/2024/input7.nippy
21.1 KB
notebooks/y2024/d07.clj
@@ -1,7 +1,8 @@
1
^{:nextjournal.clerk/visibility {:code :hide}}
2
(ns y2024.d07
3
(:require
4
- [nextjournal.clerk :as clerk]))
+ [nextjournal.clerk :as clerk]
5
+ [advent-of-code-clj.input :as input]))
6
7
; # 2024, dag 7
8
@@ -65,9 +66,7 @@
65
66
67
; Som gir oss svaret på reell input:
68
-^{:nextjournal.clerk/visibility {:result :hide}}
69
-(comment
70
- (= 1038838357795 (solve [+ *] (slurp "input/2024/input7.txt"))))
+(= 1038838357795 (solve [+ *] (input/get-input 2024 7)))
71
72
; ## Del 2
73
@@ -97,6 +96,4 @@
97
96
98
; Og riktig svar på reell input:
99
100
101
102
- (= 254136560217241 (solve [+ * ||] (slurp "input/2024/input7.txt"))))
+(= 254136560217241 (solve [+ * ||] (input/get-input 2024 7)))
0 commit comments