fork download
  1. (defn count-out-consecutive [matrix coords direction]
  2. (->> coords
  3. (iterate #(mapv + % direction))
  4. (map #(get-in matrix % ::not-found))
  5. (partition-by identity)
  6. first count))
  7.  
  8. (count-out-consecutive (repeat 3 (repeat 3 0)) [0 0] [1 1])
Time limit exceeded #stdin #stdout 5s 725292KB
stdin
Standard input is empty
stdout
Standard output is empty