hdu 1540(线段树)

     题意:D代表破坏村庄,R代表修复最后被破坏的那个村庄,Q代表询问包括x在内的最大连续区间是多少。 线段树区间合并基础题。   #include<cstdio> #include<iostream> #include<cstring> #include<algorithm> using namespace std; const int maxn = 5e4 + 10; struct Tre
相关文章
相关标签/搜索