摘要: https://vjudge.net/contest/446582#problem/B 这道题是一道不错的线段树练代码能力的题。 #include<bits/stdc++.h> using namespace std; const int N=1e6+5; char s[N]; int a[N]; 阅读全文