金魚亭日常

読書,ガジェット,競技プログラミング

AtCoder ABC #024 C. 民族大移動

貪欲法

グラフかと思ったけど,図を書いてみると直線でいけるらしいとわかった.

AtCoder ABC #024 C. 民族大移動