Rosetta Problems
← atcoder に戻る
A Boat Going Down the River
https://atcoder.jp/contests/awc0158/tasks/awc0158_c