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
2024-05-03 04:35:36
hosoo suga
2024-04-20 08:09:37
temuge is bad so bad
2023-07-02 14:33:54
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:29:34
#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+2);
//i++;



}

cout<<s;
return 0;
}
AHLAH DESLEGCH LHAMJAM G.TAMIR OD GEDEG NERTEI TSAGDAA NARTAI TAARVAL ZUGTAARAI BOLGOOMJTOI BAIGAARAI MEDREL MUUTAI BAS AYULTAI SHUU!!!!!!!!!!!!!!!!!
AHLAH DESLEGCH LHAMJAM G.TAMIR OD GEDEG NERTEI TSAGDAA NARTAI TAARVAL ZUGTAARAI BOLGOOMJTOI BAIGAARAI MEDREL MUUTAI BAS AYULTAI SHUU!!!!!!!!!!!!!!!!!
AHLAH DESLEGCH LHAMJAM G.TAMIR OD GEDEG NERTEI TSAGDAA NARTAI TAARVAL ZUGTAARAI BOLGOOMJTOI BAIGAARAI MEDREL MUUTAI BAS AYULTAI SHUU!!!!!!!!!!!!!!!!!
AHLAH DESLEGCH LHAMJAM G.TAMIR OD GEDEG NERTEI TSAGDAA NARTAI TAARVAL ZUGTAARAI BOLGOOMJTOI BAIGAARAI MEDREL MUUTAI BAS AYULTAI SHUU!!!!!!!!!!!!!!!!!
AHLAH DESLEGCH LHAMJAM G.TAMIR OD GEDEG NERTEI TSAGDAA NARTAI TAARVAL ZUGTAARAI BOLGOOMJTOI BAIGAARAI MEDREL MUUTAI BAS AYULTAI SHUU!!!!!!!!!!!!!!!!!
AHLAH DESLEGCH LHAMJAM G.TAMIR OD GEDEG NERTEI TSAGDAA NARTAI TAARVAL ZUGTAARAI BOLGOOMJTOI BAIGAARAI MEDREL MUUTAI BAS AYULTAI SHUU!!!!!!!!!!!!!!!!!
AHLAH DESLEGCH LHAMJAM G.TAMIR OD GEDEG NERTEI TSAGDAA NARTAI TAARVAL ZUGTAARAI BOLGOOMJTOI BAIGAARAI MEDREL MUUTAI BAS AYULTAI SHUU!!!!!!!!!!!!!!!!!
AHLAH DESLEGCH LHAMJAM G.TAMIR OD GEDEG NERTEI TSAGDAA NARTAI TAARVAL ZUGTAARAI BOLGOOMJTOI BAIGAARAI MEDREL MUUTAI BAS AYULTAI SHUU!!!!!!!!!!!!!!!!!
AHLAH DESLEGCH LHAMJAM G.TAMIR OD GEDEG NERTEI TSAGDAA NARTAI TAARVAL ZUGTAARAI BOLGOOMJTOI BAIGAARAI MEDREL MUUTAI BAS AYULTAI SHUU!!!!!!!!!!!!!!!!!
AHLAH DESLEGCH LHAMJAM G.TAMIR OD GEDEG NERTEI TSAGDAA NARTAI TAARVAL ZUGTAARAI BOLGOOMJTOI BAIGAARAI MEDREL MUUTAI BAS AYULTAI SHUU!!!!!!!!!!!!!!!!!
2023-03-10 11:40:31
#include <stdio.h>

int main() {
int n;
scanf("%d", &n);

printf("%d\n", (int)(n*(n+1)*(2*n+1)/2 + n*(n+1) + n*n*(n+1)*(n+1)/4));
}
2022-10-27 08:10:10
HUULAH IS BAD BAD BAD BAD BAD BAD BAD BAD BAD BAD BAD BAD BAD BAD ABD ABD ABD ABD ABD BD B ABD BAD B B AD ABD BD ABD ABD BD ABD ABD ABD A BD ABD AD BABD BDA BDA BD ABD ADB AB D
A
BA V
ADASD
AF
ABHFOUAHBDSF;
2022-10-27 07:57:00
#include<bits/stdc++.h>
using namespace std;
int main(){
int n, i, s;
cin>>n;
s=0;
for(i=1;i<=n;i=i+1){
s=s+i*(i+1)*(i+2);
}
cout<<s<<endl;
} kim
2022-10-14 04:30:22
#include<bits/stdc++.h>
using namespace std;
int main(){
int n,i,s;
cin>>n;
s=0;
for(i=1;i<=n;i++){
s=s+i*(i+1)*(i+2);
}
cout<<s<<endl;
}
Copy it :D
2022-10-14 04:19:42
#include<bits/stdc++.h>
using namespace std;
int main(){
int s,n,i;
cin>>n;
s=0;
for(i=1;i<=n;i=i+1){
s=s+i*(i+1)*(i+2);
}
cout<<s<<endl;
}
2022-10-14 04:12:09
enhod suga
© Spoj.com. All Rights Reserved. Spoj uses Sphere Engine™ © by Sphere Research Labs.