#include #include #include #include using namespace std; using ll=long long; using Pll=pair; int main(){ ll N,M; cin>>N>>M; vector A(M); for(ll i=0;i>A.at(i).first; A.at(i).second=i+1; } sort(A.rbegin(),A.rend()); ll Q; cin>>Q; for(ll i=0;i>T>>X>>Y; if(T==1){ for(ll j=0;j