I am beginning to suspect something is wrong with how clojure is evaluated during submission compared to how it is evaluated for pre-submission tests. Here are a couple examples where my code passes all pre-submit tests but scores 0% during submission:
ANEO challenge code:
(ns Solution (:gen-class))
(defn -main [& args]
(println
(let [max-speed (read)
light-fns (for [_ (range (read))]
(let [dist (read) duration (read)]
(fn [speed] (zero? (mod (int (/ (* (/ dist 1000 speed) 3600) duration)) 2)))))]
(some (fn [speed] (when (every? #(% speed) light-fns) speed))
(range max-speed 0 -1)))))
Clash of Code “Shortest” challenge:
Print the sum of digits of a decimal number converted to binary.
Example: 15 in decimal => 1111 in binary, output will be 4.
(ns Solution (:gen-class))
(defn -main [& args]
(println (count (filter #{\1} (Integer/toBinaryString (read))))))