Documentation

Clojure (with tweaks for testing in the judge)
Compiler
RunClojure
Name
Clojure (with tweaks for testing in the judge)
Language
Clojure
Program and version
Clojure CLI version 1.12.0.1488
Description
Clojure for functions
Type
interpreter (vm)
Flags1
Flags2
Extension
.clj
Status
Ok

P68688
(println "Hello world!")
P57548
(defn clean [s]
    (clojure.string/trim (clojure.string/replace s #"\s+" " ")))

(defn numbers [s]
    (map read-string (clojure.string/split s #" ")))

(defn -main []
    (let [entrada (clean (slurp *in*))]
        (println (apply + (numbers entrada)))))