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

RGB7215 - Үржвэр нийлбэр 3

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

Input

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

Output

Нийлбэр.

Example

Input:
6

Output:
44

Нэмсэн: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-10-03 05:57:58


Last edit: 2022-10-03 06:08:51
2022-09-22 07:22:23
Scanner scan = new Scanner (System.in);
System.out.print("A=");
int nu1 = scan.nextInt();
int al = 0;
for(int a=2;a<=nu1;a+=2)
{
al+=a*(a-1);
}
System.out.print(al);
2022-09-14 05:54:51
#include<cstdio>

int main ()
{
int n,s=0;
scanf("%d",&n);
for(int i=1; i<=n-1; i=i+2)
{
s=s+i*(i+1);
}
printf("%d", s);
return 0;
}
Monhnasan bna
2022-05-24 02:59:26
eyyyyyyy
2022-05-24 02:59:26
eyyyyyyy
2022-05-24 02:59:26
eyyyyyyy
2022-05-24 02:59:26
eyyyyyyy
2022-05-24 02:59:26
eyyyyyyy
2022-05-24 02:59:25
eyyyyyyy
2022-05-24 02:59:25
eyyyyyyy
© Spoj.com. All Rights Reserved. Spoj uses Sphere Engine™ © by Sphere Research Labs.