Skip to content

Commit 0c7fe95

Browse files
committed
2022d2 reell input
1 parent 20cdc2e commit 0c7fe95

File tree

2 files changed

+4
-5
lines changed

2 files changed

+4
-5
lines changed

input/2022/input2.nippy

3.88 KB
Binary file not shown.

notebooks/y2022/d02.clj

+4-5
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
(ns y2022.d02
33
(:require [clojure.set :as set]
44
[clojure.string :as str]
5-
[nextjournal.clerk :as clerk]))
5+
[advent-of-code-clj.input :as input]))
66

77
(def opponent-strategy {\A :rock
88
\B :paper
@@ -62,7 +62,6 @@
6262
(transduce (map (comp calculate)) +
6363
(str/split-lines data))))
6464

65-
^{:nextjournal.clerk/visibility {:code :hide}}
66-
(clerk/code '(= 11767 (part-1 (slurp "input/2022/02.txt"))))
67-
^{:nextjournal.clerk/visibility {:code :hide}}
68-
(clerk/code '(= 13886 (part-2 (slurp "input/2022/02.txt"))))
65+
(= 11767 (part-1 (input/get-input 2022 2)))
66+
67+
(= 13886 (part-2 (input/get-input 2022 2)))

0 commit comments

Comments
 (0)