problem 40
çé¸ãããå ¨ãçµãããªãã£ãã
main = print $ p p = map (d.(10^)) [0..6] d x = (g 190000)!!(x-1) g x = foldl f "" [1..x] where f x y = x++(show y)
ã¡ãã£ã¨ã«ã³ãã³ã°ãã¦ä»¥ä¸ã
Prelude Data.Char> product [digitToInt $ ([0..] >>= show) !! x | x<- take 7 $ iterate (*10) 1] 210 (0.06 secs, 132123632 bytes)
concatMapã®å®è£ ãããããã ãããªã¼ããªããããªã«éãã®ãç解ã§ããªãã