fork download
  1. (defn angle [time]
  2. (let [[h m] (map read-string (.split time ":"))]
  3. (-> (- (+ (mod (* h 30) 360) (* 0.5 m)) (* 6 m)) Math/abs (mod 180))))
  4. (println (angle "22:55"))
  5.  
Success #stdin #stdout 1.66s 335552KB
stdin
Standard input is empty
stdout
2.5