설명 : https://codeforces.com/blog/entry/18051

ac-library 구현 : https://github.com/atcoder/ac-library/blob/master/atcoder/lazysegtree.hpp