Advertisement
Guest User

Untitled

a guest
May 30th, 2019
105
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. (defn inputArr []
  2.   (for [x (str/split (read-line)]) (int x))
  3.  
  4. (defn isReachable [arr x y]
  5.   (if (== x y) true
  6.       (let [p1 x]
  7.         (loop [p2 (range (inc p1) (inc y))]
  8.           (if (> (bit-and (dec p1) (dec p1)) 0)
  9.             (if (isReachable arr p2 y) true))
  10.           (recur (inc p2)))
  11.       false)
  12.  
  13. (let [[p1 p2] (inputArr)]
  14.   (let [arr (inputArr)]
  15.     (let [xys (for [_ (range q)] inputArr)]
  16.       (map (fn [x] (if x "Shi" "Fou"))))))
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement