You are viewing a single comment's thread. Return to all comments →
using namespace std; int main() { int n,s[100],d,m,i,j,sum=0,ct=0; cin >> n; for(i=0;i> s[i]; } cin >> d >> m; for(j=0;j<=n-m;j++) { for(i=j;i
Seems like cookies are disabled on this browser, please enable them to open this website
Subarray Division
You are viewing a single comment's thread. Return to all comments →
include
using namespace std; int main() { int n,s[100],d,m,i,j,sum=0,ct=0; cin >> n; for(i=0;i> s[i]; } cin >> d >> m; for(j=0;j<=n-m;j++) { for(i=j;i