{"author_url":"https://blog.hatena.ne.jp/jeneshicc/","width":"100%","height":"190","title":"Problem 111","provider_name":"Hatena Blog","url":"https://jeneshicc.hatenadiary.org/entry/20081127/1227792290","version":"1.0","published":"2008-11-27 22:24:50","image_url":null,"blog_url":"https://jeneshicc.hatenadiary.org/","categories":["Project Euler","Haskell"],"blog_title":"\u843d\u66f8\u304d\u3001\u6642\u3005\u843d\u5b66","html":"<iframe src=\"https://hatenablog-parts.com/embed?url=https%3A%2F%2Fjeneshicc.hatenadiary.org%2Fentry%2F20081127%2F1227792290\" title=\"Problem 111 - \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>","type":"rich","description":"http://projecteuler.net/index.php?section=problems&id=111\u666e\u901a\u306e\u89e3\u6cd5\u3001\u540c\u3058\u6570\u304c\u591a\u3044\u9023\u7d9a\u6570\u304b\u3089\u4f5c\u3063\u3066\u3001\u7d20\u6570\u304b\u30c1\u30a7\u30c3\u30af\u3002 import Number import Data.Char import Data.List toInt = read.map intToDigit :: [Int]->Integer repDigit (d+1) m (n+1) = [k:xs | k<-[1..9], k/=0, xs<-repDigit' d m $ if k==m then n-1 else n] repDigit' 0 _ 0 = [[]] r\u2026","author_name":"jeneshicc","provider_url":"https://hatena.blog"}