?
#include<bits/stdc++.h> using namespace std; int main() { unsigned long long a,b,c=0,d,s=0; cin>>a>>b; for(long long i=1;i<=a;i++){ cin>>d; c+=d; if(c>=b){c=0;s++;} } cout<<s; return 0; }