牛客網機試題-剩下的樹

看數據量的話,暴力好像也能夠,由於有區間更新和查詢,不妨回顧下帶延遲標記的線段樹吧ios #include <iostream> #include <cstdio> using namespace std; const int maxn=1e5; struct SegTreeNode { int val; bool addMark; int addval; }segTree
相關文章
相關標籤/搜索