Problem hidden
|This problem was hidden by Editorial Board member probably because it has incorrect language|version or invalid test data, or description of the problem is not clear.|

RGB7216 - Үржвэр нийлбэр 4

1*2*3+2*3*4+3*4*5+...+n*(n+1)*(n+2) нийлбэрийг ол.

Input

Натурал тоо өгөгдөнө.

Output

Нийлбэр.

Example

Input:
4

Output:
210

Нэмсэн:Bataa
Огноо:2013-01-21
Хугацааны хязгаарлалт:1s
Эх кодын хэмжээний хязгаарлалт:50000B
Memory limit:1536MB
Cluster: Cube (Intel G860)
Програмчлалын хэлүүд:ADA95 ASM32 BASH BF C NCSHARP CSHARP C++ 4.3.2 CPP C99 CLPS LISP sbcl LISP clisp D ERL FORTRAN HASK ICON ICK JAVA JS-RHINO JULIA LUA NEM NICE OCAML PAS-GPC PAS-FPC PERL PHP PIKE PRLG-swi PYTHON PYPY3 PYTHON3 RUBY SCALA SCM guile ST TCL WHITESPACE

hide comments
2021-06-21 07:38:35







































































































































































































































































































































































































huulaad herreggu
2019-11-01 12:45:10
#include<cstdio>

int main ()
{
int n,s=0;
scanf("%d",&n);
for(int i=1; i<=n; i++)
{
s=s+i*(i+1)*(i+2);
}
printf("%d", s);
return 0;
}
2019-08-18 21:27:30
#include <iostream>
using namespace std;

int main() {

int n;
cin >> n;
cout << n * (n+1) * (n+2)* (n+3) /4;
cout << endl;

return 0;
}
2019-04-16 12:21:35
#include<stdio.h>
main()
{
int a,b,c,y=0;
scanf("%d",&a);
for(int i=1;i<=a;i++){
c=i*(i+1)*(i+2);
y=y+c;
}

printf("%d",y);
}
2019-03-14 07:33:40
bae4
© Spoj.com. All Rights Reserved. Spoj uses Sphere Engine™ © by Sphere Research Labs.