考点:差分大意:在一个长区间内取走n和小区间,问取完后剩余的点数代码: #include<iostream> #include<algorithm> #include<cstring> using namespace std; const int N = 10010; int n, a[N]; int main() { int t; scanf("%d%d", &n, &t); while(t--) { int l, r; scanf("%d...