{"author_name":"jeneshicc","provider_name":"Hatena Blog","published":"2008-11-23 10:05:58","width":"100%","categories":["Project Euler","Haskell"],"url":"https://jeneshicc.hatenadiary.org/entry/20081123/1227402358","image_url":null,"author_url":"https://blog.hatena.ne.jp/jeneshicc/","blog_url":"https://jeneshicc.hatenadiary.org/","provider_url":"https://hatena.blog","version":"1.0","title":"Problem 99","html":"<iframe src=\"https://hatenablog-parts.com/embed?url=https%3A%2F%2Fjeneshicc.hatenadiary.org%2Fentry%2F20081123%2F1227402358\" title=\"Problem 99 - \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>","blog_title":"\u843d\u66f8\u304d\u3001\u6642\u3005\u843d\u5b66","description":"http://projecteuler.net/index.php?section=problems&id=99 \u305d\u306e\u307e\u307e\u3001log\u4f7f\u3063\u3066\u6bd4\u8f03\u3002 import Data.List import Data.Ord logPow x y = y*(log $ x) main = do f<-readFile \"base_exp.txt\" let xs = map (read.g) . lines $ f ::[[Double]] ans = maximumBy (comparing $ foldl1 logPow)$xs print.findIndex (==ans) $ []:xs where g\u2026","type":"rich","height":"190"}