{"author_url":"https://blog.hatena.ne.jp/inamori/","provider_name":"Hatena Blog","blog_title":"inamori\u2019s diary","description":"Problem 4\u6b21\u306f\u7a4d\u3092\u751f\u6210\u3057\u3066\u305d\u308c\u304c\u56de\u6587\u6570\u306b\u306a\u3063\u3066\u3044\u308b\u304b\u5224\u5b9a\u3057\u307e\u3059\u3002 PriorityQueue \u7a4d\u3092\u751f\u6210\u3059\u308b\u306e\u306f\u7c21\u5358\u3067\u3059\u304c\u3001\u305d\u308c\u3092\u964d\u9806\u306b\u4e26\u3079\u306a\u3051\u308c\u3070\u306a\u308a\u307e\u305b\u3093\u3002\u305d\u308c\u3092\u7c21\u5358\u306b\u3057\u304b\u3082\u901f\u304f\u53ef\u80fd\u306b\u3059\u308b\u306e\u304cPriorityQueue\u3067\u3059\u3002 import scala.collection.mutable.PriorityQueue val pq = new PriorityQueue[Int] pq.enqueue(3) pq.enqueue(1) println (pq.dequeue) // 3 pq.enqueue(4) println (pq.dequeue) // 4 println (p\u2026","html":"<iframe src=\"https://hatenablog-parts.com/embed?url=https%3A%2F%2Finamori.hateblo.jp%2Fentry%2F20110519%2Fp1\" title=\"Scala\u3067Project Euler\uff0810\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>","provider_url":"https://hatena.blog","version":"1.0","published":"2011-05-19 00:00:00","width":"100%","author_name":"inamori","title":"Scala\u3067Project Euler\uff0810\uff09","type":"rich","blog_url":"https://inamori.hateblo.jp/","height":"190","categories":["Scala"],"url":"https://inamori.hateblo.jp/entry/20110519/p1","image_url":null}