-
个人简介
'''
#include<bits/stdc++.h> using namespace std; long long n,m,k,x,w,q; list<int> a; int main(){ cin>>n>>m>>k; for(int i = 1;i<=n;i++){ cin>>w; a.push_back(w); } for(int i = 1;i<=m;i++){ cin>>q; if(q == 1 || q == 2){ cin>>x; if(q == 2) x = -x; for(list<int>::iterator it = a.begin();it!=a.end();){ *it += x; if(*it < -k || *it > k){ list<int>::iterator tit = it; it++; a.erase(tit); }else it++; } }else{ cout<<a.size()<<endl; } } }'''
-
最近活动