fork(2) 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 "15:20"))
  5.  
Success #stdin #stdout 1.68s 335488KB
stdin
Standard input is empty
stdout
20.0