{"blog_url":"https://inamori.hateblo.jp/","author_name":"inamori","blog_title":"inamori\u2019s diary","url":"https://inamori.hateblo.jp/entry/20130705/p1","published":"2013-07-05 00:00:00","title":"C#\u3067Project Euler\uff084\uff09 \u30af\u30a8\u30ea\u5f0f","author_url":"https://blog.hatena.ne.jp/inamori/","categories":["C#"],"html":"<iframe src=\"https://hatenablog-parts.com/embed?url=https%3A%2F%2Finamori.hateblo.jp%2Fentry%2F20130705%2Fp1\" title=\"C#\u3067Project Euler\uff084\uff09 \u30af\u30a8\u30ea\u5f0f - inamori\u2019s diary\" class=\"embed-card embed-blogcard\" scrolling=\"no\" frameborder=\"0\" style=\"display: block; width: 100%; height: 190px; max-width: 500px; margin: 10px 0px;\"></iframe>","provider_name":"Hatena Blog","width":"100%","type":"rich","height":"190","description":"\u524d\u56de\u306fPython\u306e N = 1000 print sum(ifilter(lambda n: n % 3 == 0 or n % 5 == 0, xrange(1, N))) \u3092C#\u3067\u66f8\u304f\u3068\u3001 const int N = 1000; var s = Enumerable.Range(1, N - 1). Where(n => n % 3 == 0 || n % 5 == 0).Sum(); Console.WriteLine(s); \u3068\u306a\u308b\u306e\u3092\u898b\u307e\u3057\u305f\u3002\u3053\u306e\u30e1\u30bd\u30c3\u30c9\u3092\u9023\u7d50\u3059\u308b\u65b9\u6cd5\u4ee5\u5916\u306b\u3001\u3082\u3046\u4e00\u3064\u65b9\u6cd5\u304c\u3042\u308a\u307e\u3059\u3002\u305d\u308c\u304c\u30af\u30a8\u30ea\u5f0f\u3092\u4f7f\u3046\u3082\u306e\u3067\u3059\u3002\u5177\u4f53\u7684\u306b\u898b\u3066\u307f\u307e\u3057\u3087\u3046\u3002 const int N =\u2026","image_url":null,"version":"1.0","provider_url":"https://hatena.blog"}