#include using namespace std; using ll=long long; using ld=long double; using P=pair; using V=vector; #define rep(i,n) for(ll i=0;i> _n >> q; while(n<=_n) n*=2; V a(_n); rep(i,_n){ cin >> a[i]; update(i,(0> t >> x >> y; x--; if(t==1) update(x,(0