#include #define ll long long #define endl "\n"; using namespace std; ll sigma(ll w){ double a; a=((double)w/2)*((double)w+1); return (ll)a; } int main(){ ll a,b=0,c=0,d,e,f,suma,sumb,will=0; cin >>a; cin >>b; d=2000000000; vector q(b); will=a; for (int i=0; i>q[i]; will+=q[i]; } d=will/b; // cout <2){ e=c+(d-c)/3; f=c+((d-c)/3)*2; suma=0; sumb=0; for (int j=0; jsumb){ c=e; }else if(suma p(4); for (int o=0; oe ansb->f */