ABC477-F「Count Cells in a Window」を解きました✅
2次元累積和の包除原理でオフライン処理し、各行のy=ax+bの傾きaとy切片bをBITで管理。かなり苦戦しましたが、とても勉強になりました🪟
gist.github.com/maehrm/f53169ed3719…
#AtCoder #競技プログラミング
gist.github.com
F - Count Cells in a Window https://atcoder.jp/contests/abc477/tasks/abc477_f
F - Count Cells in a Window https://atcoder.jp/contests/abc477/tasks/abc477_f - abc477_f.py