#include #include #include #include #include #include #include #include int main(){ int n; long int a,b,second,p=1000000007,add; //int b; int q; int i; float res; int query; int first; //int second; scanf("%d %ld %ld %d",&n,&a,&b,&q); res=(float)b/a; res=-1*res; int *c = malloc(sizeof(int) * n); for(int i = 0; i < n; i++){ scanf("%d",&c[i]); } for(int a0 = 0; a0 < q; a0++){ scanf("%d %d %d",&query,&first,&second); if(query==1){ c[first]=second; } else{ add=0; for(i=first;i<=second;i++){ add+=pow(res,i-first)*c[i]; } if(add==0){ printf("Yes\n"); } else{ printf("No\n"); } } } return 0; }