#include #include #include #include #include using namespace std; int main() { /* Enter your code here. Read input from STDIN. Print output to STDOUT */ int n,a,b,q; cin>>n>>a>>b>>q; int arr[n]; float put=-b/a; for (int i=0;i>arr[i];} while (q--) {int first; cin>>first; if (first == 1) {int index; cin>>index; int val; cin>>val; arr[index]=val; } else if (first == 2) {int l,r; cin>>l; cin>>r; int k=0; float sum=0; for (int i=l;i<=r;i++) {sum+=arr[i]*pow(put,k); k++;} if (sum==0) {cout<<"Yes"<