{"blog_title":"inamori\u2019s diary","html":"<iframe src=\"https://hatenablog-parts.com/embed?url=https%3A%2F%2Finamori.hateblo.jp%2Fentry%2F20110611%2Fp1\" title=\"Scala\u3067Project Euler\uff0824\uff09 - 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>","type":"rich","height":"190","title":"Scala\u3067Project Euler\uff0824\uff09","provider_name":"Hatena Blog","author_url":"https://blog.hatena.ne.jp/inamori/","width":"100%","version":"1.0","provider_url":"https://hatena.blog","author_name":"inamori","description":"Problem 12\u5f15\u304d\u7d9a\u304d\u7d04\u6570\u306e\u500b\u6570\u304c\u3042\u308b\u6570\u3088\u308a\u5927\u304d\u3044\u81ea\u7136\u6570\u3092\u6607\u9806\u306b\u5217\u6319\u3059\u308b\uff081\uff09\u3067Python\u3067\u66f8\u3044\u305f\u30b3\u30fc\u30c9\u3092Scala\u306b\u3057\u307e\u3059\u3002 Set Set\u306f\u3053\u3093\u306a\u611f\u3058\u306b\u4f7f\u3044\u307e\u3059\u3002 import scala.collection.mutable.Set val s = Set[Int]() s += 3 s += 1 s += 4 println (s) println (s.contains(3)) \u3053\u308c\u3067Problem 12\u304c\u66f8\u3051\u307e\u3059\u3002 \u3057\u304b\u3057\u3001\u9045\u3044\u3067\u3059\u306d\u3002\uff08\u8ffd\u8a18\uff09 \u5c11\u3057\u9593\u9055\u3048\u3066\u3044\u305f\u3060\u3051\u3067\u3057\u305f\u3002\u4fee\u6b63\u3057\u307e\u3057\u305f\u3002","categories":["Scala"],"url":"https://inamori.hateblo.jp/entry/20110611/p1","image_url":null,"blog_url":"https://inamori.hateblo.jp/","published":"2011-06-11 00:00:00"}