Monday, July 18, 2016

UVA 10302 Solution

Unknown
#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;
}

Unknown

Studying at Shahjalal University of Science and Technology, Sylhet.

0 comments:

Post a Comment

Coprights @ 2016,