ll@n,@m,@w,@a[n],@b[m],@c[]; rsortA(n,a); rep(i,n-1){ a[i+1]+=a[i]; } ll sb[1<