{"author_name":"jeneshicc","blog_title":"\u843d\u66f8\u304d\u3001\u6642\u3005\u843d\u5b66","author_url":"https://blog.hatena.ne.jp/jeneshicc/","title":"Problem 108","width":"100%","published":"2008-11-26 17:27:21","provider_name":"Hatena Blog","html":"<iframe src=\"https://hatenablog-parts.com/embed?url=https%3A%2F%2Fjeneshicc.hatenadiary.org%2Fentry%2F20081126%2F1227688041\" title=\"Problem 108 - \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>","version":"1.0","image_url":null,"categories":["Project Euler","Haskell"],"height":"190","provider_url":"https://hatena.blog","type":"rich","description":"http://projecteuler.net/index.php?section=problems&id=1081/a+1/b=1/n\u3067\u3059\u304c\u3001b=n+b'\u3068\u66f8\u304d\u63db\u3048\u308b\u3068 n^2\u304cb'\u3067\u5272\u308a\u5207\u308c\u308b\u3053\u3068\u304c\u5206\u304b\u308b\u3002 \u5f93\u3063\u3066\u3001n^2\u304c1999\u500b\u306e\u7d04\u6570\u3092\u6301\u3064\u6700\u5c0f\u306en\u3092\u63a2\u305b\u3070\u3088\u3044\u3002 import Number import Data.List import Data.Maybe descending xs = and . zipWith (>=) xs $ tail xs succ' (n+1) xs = let (ys,z:zs) = splitAt n xs in ys++[z+1]++zs nex\u2026","url":"https://jeneshicc.hatenadiary.org/entry/20081126/1227688041","blog_url":"https://jeneshicc.hatenadiary.org/"}