{"blog_title":"\u653e\u7267\u65e5\u8a18","height":"190","type":"rich","provider_name":"Hatena Blog","author_url":"https://blog.hatena.ne.jp/troter/","description":"\u7df4\u7fd2\u304c\u3066\u3089\u89e3\u3044\u3066\u307f\u305f\u3002 \u56de\u7b54 \u30c7\u30d5\u30a9\u30eb\u30c8\u306eGnu Prolog\u3060\u3068Problem3\u306f\u901f\u653b\u3067\u30d2\u30fc\u30d7\u304c\u8db3\u3089\u306a\u304f\u306a\u3063\u3066\u843d\u3061\u308b\u3002\u9762\u5012\u306a\u306e\u3067SWI-Prolog\u3092\u5229\u7528\u3057\u305f\u3002 problem1(N, Result) :- N1 is N - 1, problem1_sub(N1, Result, 0), !. problem1_sub(0, Acc, Acc). problem1_sub(N, Result, Acc) :- N > 0, N1 is N - 1, ((N mod 3 =:= 0 ; N mod 5 =:= 0) -> Acc1 is Acc + N; Acc1 is Acc), prob\u2026","provider_url":"https://hatena.blog","title":" project euler problem 1-3 answer","categories":["prolog"],"url":"https://troter.hatenablog.jp/entry/20080428/1209395947","version":"1.0","blog_url":"https://troter.hatenablog.jp/","published":"2008-04-28 00:19:07","width":"100%","image_url":null,"author_name":"troter","html":"<iframe src=\"https://hatenablog-parts.com/embed?url=https%3A%2F%2Ftroter.hatenablog.jp%2Fentry%2F20080428%2F1209395947\" title=\" project euler problem 1-3 answer - \u653e\u7267\u65e5\u8a18\" class=\"embed-card embed-blogcard\" scrolling=\"no\" frameborder=\"0\" style=\"display: block; width: 100%; height: 190px; max-width: 500px; margin: 10px 0px;\"></iframe>"}