#include #include using namespace std; using ll=long long; int main(void) { int n, v, i, ln, m; vector c; ll s, l; double ave, ave_min; while(scanf("%d%d", &n, &v)==2) { c.resize(n); s=0; for(i=0;iave) { ave_min=ave; ln=i+1; } } m=v-v/ln*ln; for(i=0;i