{"author_name":"tanakaBox","description":"\u5168\u7136\u3075\u3064\u3051\u308b\u8aad\u3093\u3067\u306a\u304b\u3063\u305f!!\u6587\u6cd5\u3059\u3089\u5fd8\u308c\u3066\u305f\u72b6\u614b\u3060\u3063\u305f\u306e\u3067\u30011\u7ae0\u304b\u3089\u8aad\u307f\u76f4\u3057\u3066\u305f\u3002\u3084\u3063\u30683\u7ae0\u30c7\u30b9\u3002\u578b\u3063\u3066\u30e0\u30ba\u30ab\u30b7\u30a4!! \u578b\u306e\u7df4\u7fd2 3\u7ae0\u306etranslate\u3092\u6539\u9020\u3057\u3066\u578b\u306e\u7df4\u7fd2\u3067\u3059\u3002+\u306f1\u8db3\u3059\u3002-\u306f1\u5f15\u304f\u3002\u3068\u3044\u3046\u8a00\u8a9e\u3002 input :: String input = \"+++++++++----++--+++-----\" translate :: Char -> Int translate '+' = 1 translate '-' = -1 calc :: String -> Int calc s = foldl (\\a b -> a + b) 0 $ map translate s ans \u2026","provider_url":"https://hatena.blog","url":"https://boxnos.hatenablog.com/entry/20080205/1202168350","version":"1.0","blog_title":"\u30dc\u30af\u30ce\u30b9","provider_name":"Hatena Blog","height":"190","published":"2008-02-05 08:39:10","html":"<iframe src=\"https://hatenablog-parts.com/embed?url=https%3A%2F%2Fboxnos.hatenablog.com%2Fentry%2F20080205%2F1202168350\" title=\" \u3075\u3064\u3051\u308b(2) - 3\u7ae0(1) \u578b\u306e\u7df4\u7fd2 - \u30dc\u30af\u30ce\u30b9\" class=\"embed-card embed-blogcard\" scrolling=\"no\" frameborder=\"0\" style=\"display: block; width: 100%; height: 190px; max-width: 500px; margin: 10px 0px;\"></iframe>","author_url":"https://blog.hatena.ne.jp/tanakaBox/","title":" \u3075\u3064\u3051\u308b(2) - 3\u7ae0(1) \u578b\u306e\u7df4\u7fd2","width":"100%","blog_url":"https://boxnos.hatenablog.com/","type":"rich","image_url":null,"categories":["Haskell"]}