Tuesday 17 October 2017

UVA 10302 solve:

10302 - Summation of Polynomials


#include<bits/stdc++.h>
using namespace std;
int main()
{
    long  long int n;
        while(scanf("%lld",&n)==1)
        {
        printf("%lld\n",(n*n*(n+1)*(n+1))/4);
        }
    return 0;
}