#include<stdio.h>
int main()
{
long long n,sum=0 ;
while(scanf("%lld",&n)!=EOF)
{
sum=n*n*(n+1)*(n+1)/4;
printf("%lld\n",sum);
}
return 0;
}
int main()
{
long long n,sum=0 ;
while(scanf("%lld",&n)!=EOF)
{
sum=n*n*(n+1)*(n+1)/4;
printf("%lld\n",sum);
}
return 0;
}
No comments:
Post a Comment