A #include<bits/stdc++.h> using namespace std; const int maxn=1e5+10; const int mod=1e9+7; int w[maxn], n, k, sum[maxn]; int main() { scanf("%d%d", &n, &k); for (int i=1; i<=n; i++) { scanf("%d", &w[i]); sum[i] = w[i] + sum[i-1]; } while (k-...