golf
This commit is contained in:
parent
f70ba6d543
commit
4e5cba07bf
@ -5,7 +5,6 @@
|
|||||||
(mapv (comp (partial mapv parse-long)
|
(mapv (comp (partial mapv parse-long)
|
||||||
(partial re-seq #"\d+")))))
|
(partial re-seq #"\d+")))))
|
||||||
(def initial-circuits (into #{} (map hash-set input)))
|
(def initial-circuits (into #{} (map hash-set input)))
|
||||||
|
|
||||||
(defn square [x] (* x x))
|
(defn square [x] (* x x))
|
||||||
(defn dist-squared [[ax ay az] [bx by bz]]
|
(defn dist-squared [[ax ay az] [bx by bz]]
|
||||||
(+ (square (- ax bx))
|
(+ (square (- ax bx))
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user