hdu 1540(線段樹)

     題意:D代表破壞村莊,R代表修復最後被破壞的那個村莊,Q代表詢問包括x在內的最大連續區間是多少。 線段樹區間合併基礎題。   #include<cstdio> #include<iostream> #include<cstring> #include<algorithm> using namespace std; const int maxn = 5e4 + 10; struct Tre
相關文章
相關標籤/搜索