Monday, July 18, 2016

Published July 18, 2016 by with 0 comment

UVA 10302 Solution

#include<cstdio>
#include<cmath>
using namespace std;
typedef long long int lld;

int main()
{
 lld n,sum;
 while (scanf("%lld",&n)!=EOF)
  printf("%lld\n",n*n*(n+1)*(n+1)/4);
 return 0;
}
      edit

0 comments:

Post a Comment