そのアルゴリズム、貪欲につき――貪欲法のススメ:最強最速アルゴリズマー養成講座(2/3 ページ) 今回の問題 TopCoder Openの時期ですので、去年のTopCoderOpenのRound2Hard問題から出題します。Hard問題なのでかなり難しいのですが、じっくりと考えてみてください。 In the kingdom of Absurdistan there are N airports, and in the far away country of Utopia there are M airports. Currently, there is no air traffic on any of these airports. Each airport has some capacity - i.e., a limit on the number of flights it can
![そのアルゴリズム、貪欲につき――貪欲法のススメ](https://cdn-ak-scissors.b.st-hatena.com/image/square/7e51372d18138e90ed2c8d95d693065718b5e361/height=288;version=1;width=512/https%3A%2F%2Fimage.itmedia.co.jp%2Fimages%2Flogo%2F1200x630_500x500_enterprise.gif)