Made Smallest problem not parse printed integer.

This commit is contained in:
Tom Helmuth 2021-11-02 10:37:49 -04:00
parent fcb8bd398b
commit 69a65229fe

View File

@ -80,10 +80,7 @@
:print))
inputs)
errors (map (fn [correct-output output]
(let [parsed-output (try (read-string output)
#?(:clj (catch Exception e 1000.0)
:cljs (catch js/Error. e 1000.0)))]
(if (= correct-output parsed-output) 0 1)))
(if (= (str correct-output) output) 0 1))
correct-outputs
outputs)]
(assoc individual