include <bits/stdc++.h> using namespace std; int main(){ int n,k,t,len=0; cin>>n>>k; vector<int> arr(n+1,0); for(int i=1;i<=n;i++) { cin>>t; arr[i]=arr[i-1]+t; if(arr[i]==k) len=max(len,i); } for(int i=1;i<=n;i+...