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
2023-01-02 09:04:14
#include<iostream>
using namespace std;
main()
{
int n, i, s=0, k=2;
cin>>n;
for(i=1; i<=n; i++)
{
s=s+i*k;
k++;
}
cout<<s;
}
jajja
2022-11-10 07:00:39
#include <stdio.h>
#include <stdlib.h>
#include <math.h>
int main() {
int a,b=0,c=0,d,i;
scanf("%d",&a);
for(i=1;i<=a;i++){
b=b+i*(i+1); }
printf("%d",b);
return 0;
}
2022-10-27 08:06:49
Logic
2022-10-14 04:06:01
...
2022-10-14 03:56:22
#include <stdio.h>
#include <stdlib.h>
#include <math.h>
int main() {
int a,b=0,c=0,d,i;
scanf("%d",&a);
for(i=1;i<=a;i++){
b=b+i*(i+1); }
printf("%d",b);
return 0;
} huul!
2022-10-13 04:40:12
chinii ez chin tgeed haa baina
2022-10-13 04:31:29
ez
2022-10-13 04:31:29
ez
2022-10-13 04:31:29
ez
2022-10-13 04:31:29
ez
© Spoj.com. All Rights Reserved. Spoj uses Sphere Engine™ © by Sphere Research Labs.