リクルートの難しい方の問題

プログラミング問題「渋滞緩和」
https://www.rco.recruit.co.jp/career/engineer/problem/traffic/