#include <bits/stdc++.h>#define int long longusing namespace std;int f[200001],a[200001];int qian[200001];vector<int>pos[200001];int posf=1;signed main(){ int n,m; scanf("%lld%lld",&n,&m); for(int i=1;i<=n;i++){ scanf("%lld",&f[i]); qian[i]=f[i]+qian[...