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
2024-12-09 12:00:11
a

Last edit: 2024-12-09 12:00:58
2024-11-28 03:34:40
hahahaahahahahahahahahahahahahahahahhahahahahahahahahahahahahahahhahahaahahahahahahahahahahahahahahahhahahahahahahahahahahahahahahhahahaahahahahahahahahahahahahahahahhahahahahahahahahahahahahahahhahahaahahahahahahahahahahahahahahahhahahahahahahahahahahahahahahhahahaahahahahahahahahahahahahahahahhahahahahahahahahahahahahahahhahahaahahahahahahahahahahahahahahahhahahahahahahahahahahahahahahhahahaahahahahahahahahahahahahahahahhahahahahahahahahahahahahahahhahahaahahahahahahahahahahahahahahahhahahahahahahahahahahahahahahhahahaahahahahahahahahahahahahahahahhahahahahahahahahahahahahahahhahahaahahahahahahahahahahahahahahahhahahahahahahahahahahahahahahhahahaahahahahahahahahahahahahahahahhahahahahahahahahahahahahahahhahahaahahahahahahahahahahahahahahahhahahahahahahahahahahahahahahhahahaahahahahahahahahahahahahahahahhahahahahahahahahahahahahahahhahahaahahahahahahahahahahahahahahahhahahahahahahahahahahahahahahhahahaahahahahahahahahahahahahahahahhahahahahahahahahahahahahahahhahahaahahahahahahahahahahahahahahahhahahahahahahahahahahahahahahhahahaahahahahahahahahahahahahahahahhahahahahahahahahahahahahahahhahahaahahahahahahahahahahahahahahahhahahahahahahahahahahahahahahhahahaahahahahahahahahahahahahahahahhahahahahahahahahahahahahahahhahahaahahahahahahahahahahahahahahahhahahahahahahahahahahahahahahhahahaahahahahahahahahahahahahahahahhahahahahahahahahahahahahahahhahahaahahahahahahahahahahahahahahahhahahahahahahahahahahahahahahhahahaahahahahahahahahahahahahahahahhahahahahahahahahahahahahahahhahahaahahahahahahahahahahahahahahahhahahahahahahahahahahahahahahhahahaahahahahahahahahahahahahahahahhahahahahahahahahahahahahahahhahahaahahahahahahahahahahahahahahahhahahahahahahahahahahahahahahhahahaahahahahahahahahahahahahahahahhahahahahahahahahahahahahahahhahahaahahahahahahahahahahahahahahahhahahahahahahahahahahahahahahhahahaahahahahahahahahahahahahahahahhahahahahahahahahahahahahahahhahahaahahahahahahahahahahahahahahahhahahahahahahahahahahahahahahhahahaahahahahahahahahahahahahahahahhahahahahahahahahahahahahahahhahahaahahahahahahahahahahahahahahahhahahahahahahahahahahahahahahhahahaahahahahahahahahahahahahahahahhahahahahahahahahahahahahahahhahahaahahahahahahahahahahahahahahahhahahahahahahahahahahahahahahhahahaahahahahahahahahahahahahahahahhahahahahahahahahahahahahahahhahahaahahahahahahahahahahahahahahahhahahahahahahahahahahahahahahhahahaahahahahahahahahahahahahahahahhahahahahahahahahahahahahahahhahahaahahahahahahahahahahahahahahahhahahahahahahahahahahahahahahhahahaahahahahahahahahahahahahahahahhahahahahahahahahahahahahahahhahahaahahahahahahahahahahahahahahahhahahahahahahahahahahahahahahhahahaahahahahahahahahahahahahahahahhahahahahahahahahahahahahahahhahahaahahahahahahahahahahahahahahahhahahahahahahahahahahahahahahhahahaahahahahahahahahahahahahahahahhahahahahahahahahahahahahahahhahahaahahahahahahahahahahahahahahahhahahahahahahahahahahahahahahhahahaahahahahahahahahahahahahahahahhahahahahahahahahahahahahahahhahahaahahahahahahahahahahahahahahahhahahahahahahahahahahahahahahhahahaahahahahahahahahahahahahahahahhahahahahahahahahahahahahahahhahahaahahahahahahahahahahahahahahahhahahahahahahahahahahahahahahhahahaahahahahahahahahahahahahahahahhahahahahahahahahahahahahahahhahahaahahahahahahahahahahahahahahahhahahahahahahahahahahahahahahhahahaahahahahahahahahahahahahahahahhahahahahahahahahahahahahahahhahahaahahahahahahahahahahahahahahahhahahahahahahahahahahahahahahhahahaahahahahahahahahahahahahahahahhahahahahahahahahahahahahahahhahahaahahahahahahahahahahahahahahahhahahahahahahahahahahahahahahhahahaahahahahahahahahahahahahahahahhahahahahahahahahahahahahahahhahahaahahahahahahahahahahahahahahahhahahahahahahahahahahahahahahhahahaahahahahahahahahahahahahahahahhahahahahahahahahahahahahahahhahahaahahahahahahahahahahahahahahahhahahahahahahahahahahahahahahhahahaahahahahahahahahahahahahahahahhahahahahahahahahahahahahahahhahahaahahahahahahahahahahahahahahahhahahahahahahahahahahahahahahhahahaahahahahahahahahahahahahahahahhahahahahahahahahahahahahahahhahahaahahahahahahahahahahahahahahahhahahahahahahahahahahahahahahhahahaahahahahahahahahahahahahahahahhahahahahahahahahahahahahahahhahahaahahahahahahahahahahahahahahahhahahahahahahahahahahahahahahhahahaahahahahahahahahahahahahahahahhahahahahahahahahahahahahahahhahahaahahahahahahahahahahahahahahahhahahahahahahahahahahahahahahhahahaahahahahahahahahahahahahahahahhahahahahahahahahahahahahahahhahahaahahahahahahahahahahahahahahahhahahahahahahahahahahahahahahhahahaahahahahahahahahahahahahahahahhahahahahahahahahahahahahahahhahahaahahahahahahahahahahahahahahahhahahahahahahahahahahahahahahhahahaahahahahahahahahahahahahahahahhahahahahahahahahahahahahahahhahahaahahahahahahahahahahahahahahahhahahahahahahahahahahahahahahhahahaahahahahahahahahahahahahahahahhahahahahahahahahahahahahahahhahahaahahahahahahahahahahahahahahahhahahahahahahahahahahahahahahhahahaahahahahahahahahahahahahahahahhahahahahahahahahahahahahahahhahahaahahahahahahahahahahahahahahahhahahahahahahahahahahahahahahhahahaahahahahahahahahahahahahahahahhahahahahahahahahahahahahahahhahahaahahahahahahahahahahahahahahahhahahahahahahahahahahahahahahhahahaahahahahahahahahahahahahahahahhahahahahahahahahahahahahahahhahahaahahahahahahahahahahahahahahahhahahahahahahahahahahahahahahhahahaahahahahahahahahahahahahahahahhahahahahahahahahahahahahahahhahahaahahahahahahahahahahahahahahahhahahahahahahahahahahahahahah
2024-05-26 06:04:43
stfu i can copy at anytime i want
2024-04-20 08:19:37
temuge is bad so bad
2024-03-03 06:40:03
kim jong un
2024-03-03 06:39:45
mistusbishi nissan mistubishi nissan wooh happy 17th birthday
2024-01-18 06:52:01
#include<iostream>
using namespace std;
int main(){
int n,k=0,i;
cin>>n;
for(i=1; i<=n; i++)
{k=k+i*(i+1);}
cout<<k;
}
2023-12-02 06:16:24
#include <bits/stdc++.h>
using namespace std;
int main() {
int n, a=0,i;
cin >> n;
for(i=1; i<=n-1; i=i+2){
a = a + i*(i+1);
}
cout << a;
}

^^
2023-07-02 14:34:08
https://www.youtube.com/watch?v=j5a0jTc9S10&t=4s

End ihenhi bodlogiin bodolt tavisan baigaa shuu orod like darad uzeerei amjilt <3 <3
2023-07-02 13:23:47
#include <bits/stdc++.h>
using namespace std;

int main() {



long long a[1000],b=0,n,i,r,e,c,s=0,d=-132423;
cin>>n;

for(i=1; i<n; i++){

//cout<<s<<' '<<i<<endl;
s+=i*(i+1);
i++;



}

cout<<s;
return 0;
}
AHLAH DESLEGCH LHAMJAM G.TAMIR OD GEDEG NERTEI TSAGDAA NARTAI TAARVAL ZUGTAARAI BOLGOOMJTOI BAIGAARAI MEDREL MUUTAI BAS AYULTAI SHUU!!!!!!!!!!!!!!!!!!!!!!!!!!!!
© Spoj.com. All Rights Reserved. Spoj uses Sphere Engine™ © by Sphere Research Labs.