kwm_t

kwm_tのメモ

ABC351

■A - The bottom of the ninth
たしてひく
■B - Spot the Difference
全部見る
■C - Merge the balls
stackにつっこむ
■D - Grid and Magnet
自由に移動できるところをdsuでまとめて
そこから最後に移動できるところを合わせる
■E - Jump Distance Sum
(x,y)->(x+y,x-y)として
sortして累積和
■F - Double Sum
セグ木に{和、個数}の形で乗せる
■G - Hash on Tree
StaticTopTree