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.|

RGB7213 - Үржвэр нийлбэр 1

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

Input

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

Output

Нийлбэр

Example

Input:
5

Output:
70

Нэмсэн: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
2022-05-26 02:00:12
ez
2022-05-24 02:05:02
huts cil boddgin bgz mu muu muuu..... buuz min
2022-03-31 05:35:23
iimhn yum bdj chdq bhasa icheech psda min
archaagugeesee bdj chdq bgn zayu psda min yvj bagshaasaa bdlgoo asuu!!!
2022-03-26 15:33:05
#include <iostream>
#include <iomanip>
using namespace std;

int main() {
int a,res = 0;
cin >> a;

for(int i = 1; i <= a; i++) {
res += i * (i + 1);
}
cout << res ;
return 0;
} // call me boys 80829050
2022-03-02 09:25:50
body chalky bn:(
2022-03-02 09:25:03
Ronaldo SUIIIIIIII

Last edit: 2022-03-02 09:25:31
2022-03-02 09:24:54
wyd
2022-03-02 09:24:46
oggey
2022-03-02 09:24:33
yes boon
2022-03-02 09:21:55
No
© Spoj.com. All Rights Reserved. Spoj uses Sphere Engine™ © by Sphere Research Labs.