{"provider_url":"https://hatena.blog","title":"Google Code Jam 2010: Qualification Round \u306e\u30e1\u30e2\uff0e","categories":["Haskell","Memo"],"image_url":null,"version":"1.0","blog_title":"\u843d\u66f8\u304d\u3001\u6642\u3005\u843d\u5b66","url":"https://jeneshicc.hatenadiary.org/entry/20100509/1273385239","width":"100%","author_url":"https://blog.hatena.ne.jp/jeneshicc/","blog_url":"https://jeneshicc.hatenadiary.org/","html":"<iframe src=\"https://hatenablog-parts.com/embed?url=https%3A%2F%2Fjeneshicc.hatenadiary.org%2Fentry%2F20100509%2F1273385239\" title=\"Google Code Jam 2010: Qualification Round \u306e\u30e1\u30e2\uff0e - \u843d\u66f8\u304d\u3001\u6642\u3005\u843d\u5b66\" class=\"embed-card embed-blogcard\" scrolling=\"no\" frameborder=\"0\" style=\"display: block; width: 100%; height: 190px; max-width: 500px; margin: 10px 0px;\"></iframe>","published":"2010-05-09 15:07:19","type":"rich","author_name":"jeneshicc","description":"\u89e3\u3044\u305f\uff0e\u3068\u308a\u3042\u3048\u305a\uff0c\u554f\u984c\u6587\u306b\u9aa8\u304c\u6298\u308c\u308b\uff0e \u30e1\u30e2\uff0c\u30e1\u30e2\uff0e A \u305d\u306e\u307e\u307e\uff0e import Control.Monad import Text.Printf light :: (Integral a, Integral b) => b -> a -> String light n k | mod (k+1) (2^n) == 0 = \"ON\" | otherwise = \"OFF\" main :: IO () main = do (t:_) <- getList :: IO [Int] forM_ [1..t] $ \\i -> do (n:k:_) <- getList :: IO [Integer\u2026","provider_name":"Hatena Blog","height":"190"}