prob: https://atcoder.jp/contests/abc153/tasks/abc153_f
editorial: https://img.atcoder.jp/abc153/editorial.pdf
I realize that it is best to hit a bomb at a coordinate which is able to hit the rightmost distance possible but how do I calculate the amount of bombs used.