UVA Solution
Programming Contest Problems and Solutions
Sunday, May 20, 2012
UVA Solution for 10302
//10302
#include <stdio.h>
#include <math.h>
int main()
{ long n,xx;
while(scanf("%ld",&n)==1)
{
xx=(n*n*(n+1)*(n+1))/4;
printf("%ld\n",xx);
}
}
Newer Post
Older Post
Home