You are viewing a single comment's thread. Return to all comments →
// Return the sum of the elements of the k'th group. long long int x=(k*(k-1)+1); long long int sum=x; for(int i=0;i<k-1;i++){ x=x+2; sum+=x; }
return sum; }https://)
Seems like cookies are disabled on this browser, please enable them to open this website
Number Groups
You are viewing a single comment's thread. Return to all comments →
return sum; }https://)