6 let numQuestions = read line1 :: Int
7 answers <- forM [1..numQuestions] $ \_ -> do
10 putStrLn $ unlines $ map showA answers
12 getQuestion :: IO (Int, Int)
15 let question = map read $ words line
16 return (question !! 0, question !! 1)
19 solve :: (Int, Int) -> Bool
23 solve (nLeft, nRight) = (a <= b * 2) && ((b - n) `mod` 3 == 0)
24 where a = max nLeft nRight
28 showA :: Bool -> String