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

RGB7214 - Үржвэр нийлбэр 2

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

Input

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

Output

Нийлбэр

Example

Input:
5
Output:
35

Нэмсэн: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-15 02:49:14
#include<iostream>
using namespace std;
main(){
int n,m=1,v=0,i;
cin>>n;
for(i=1; i<=n; i++){
v=v+i*(i+1);
}
cout<<v;
return 0;
}
2024-12-02 08:07:29
LOL
2024-02-14 10:48:00


Last edit: 2024-02-14 10:48:10
2023-11-28 08:10:01
yeao
2023-07-02 13:12:23
#include <bits/stdc++.h>
using namespace std;

int main() {



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

for(i=n; i>0; i--){
b++;
s+=b*i;



}

cout<<s-1;
return 0;
}

AHLAH DESLEGCH LHAMJAM G.TAMIR OD GEDEG NERTEI TSAGDAA NARTAI TAARVAL ZUGTAARAI BOLGOOMJTOI BAIGAARAI MEDREL MUUTAI BAS AYULTAI SHUU!!!!!!!!!!!!!!!!!


Last edit: 2023-07-02 13:13:58
2023-05-01 03:52:04
Orgil bitgii huulaad bai ♨︎_♨︎♨︎_♨︎
2023-03-14 09:52:06
#include<stdio.h>{COuS} nereen bichhen martchij
int main(){
int n,a,b=0,c,d,i;
scanf("%d",&n);
for(i=1;i<=n;i++)
{b=b+i*(n-i+1);}
printf("%d",b);
}

Last edit: 2023-03-14 09:52:41
2023-03-14 09:51:15
#include<stdio.h>
int main(){
int n,a,b=0,c,d,i;
scanf("%d",&n);
for(i=1;i<=n;i++)
{b=b+i*(n-i+1);}
printf("%d",b);
}
2023-03-14 09:41:42
suguuudaaaaaaaaaaaaa huuuuuuuuuuuulmaaaaaaaaar bnuuuuuuuuuuuuuuuu




















































































































































































































































































































































































































huuuuulhaaaaa boliocheeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee


















































































































































































































































































































































































































































































































































































































































































































































































zaaaaaaiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiilaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaachchcheeeeeeeeeeeeeeeeeeeeeeeeeeeee







2023-03-14 06:08:47
























































































































































































i



















i


iiii




i










i








i









i








i




i




i




i



i



i



i

i

ii
i

i
i

i
i

i

i
i
i
i
i

i




i
i


i

i
i

ii




i




i





i



i

i



i





i




i










i


io

i

i
© Spoj.com. All Rights Reserved. Spoj uses Sphere Engine™ © by Sphere Research Labs.