#include #include #include #include #include using namespace std; typedef long long ll; int main() { /* Enter your code here. Read input from STDIN. Print output to STDOUT */ ll n,q,a,b; cin>>n; vectorc(n); cin>>a>>b>>q; ll x_num = -b; ll x_dem = a; double x = -b/a; for (ll i=0;i>c[i]; } vector powx(n); for (ll i=0;i>type; if (type==1){ cin>>index>>value; c[index]=value; } else if (type==2){ cin>>left>>right; double sum=0; for (ll k=0;k