Water Sequence Problem By liuzhangfeiabc - 線段樹 - 矩陣乘法

題目大意:給你兩個序列A和B,維護A/B的區間加,區間A=B和A+=B和B=A和B+=A,以及求區間和 題解:發現這是個線性變換,用線段樹維護矩陣便可,略卡常;ios // luogu-judger-enable-o2 // luogu-judger-enable-o2 // luogu-judger-enable-o2 #include<iostream> #include<cstring> #
相關文章
相關標籤/搜索