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

RGB7406 - Илэрхийлэл 1

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

Input

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

Output

Илэрхийллийн утга.

Example

Input:

2

Output:

26


Нэмсэн:Bataa
Огноо:2013-02-04
Хугацааны хязгаарлалт: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
2021-01-10 11:51:19
dood talin comment:
int ee long long bolgod uz
2020-12-03 08:02:38
#include <iostream>
using namespace std;

int main() {

int n,m=0,l=1;

cin>>n;

for(int i=1;i<=n;i++){
for(int j=i;j<=2*i;j++){
l=l*j;
}
m=m+l;
l=1;
}
cout<<m;

return 0;
}
yu n buruu um bl hariu n taraad bga um shig bhin
2020-10-30 16:34:28
#include<cstdio>
#include<cmath>
#include<iostream>

using namespace std;

int main(){
int k,sum = 1,res = 0,i,j,n;
cin>>n;
for(i = 1; i <=n; i++)
{
k +=2;
for(j = i; j <=k; j++)
sum = sum * j;
res = res + sum;
sum = 1;

}
cout<<res;
}
2020-01-13 02:59:49
tushige
comment huulaha boli
2019-11-09 07:41:36
sdafsdafsdfasdfasdfasdfasdfa

Last edit: 2019-11-09 07:42:40
2019-11-09 07:30:53
#include<stdio.h>
int main()
{
int a,n;
scanf("%d",&a);
printf("%d",a+a*2+a*2+a*2+a*2+a*2*a);
return 0;
} bru bh

Last edit: 2019-11-09 07:31:42
2019-11-09 07:30:26
int a,s=0,i;
scanf("%d",&a);
for(i=1;i<=a;i++)
{
s=s+(i*(i+1)*(i+2));
}
printf("%d",s);
2019-08-11 12:10:38
#include<bits/stdc++.h>

using namespace std;

int main(){
long long n,i,s,p,k,m,j,b;

cin>>n;

s=1;
k=2;
m=2;
b=0;
for(i=1;i<=n;i++){
p=1;
for(j=s;j<=s+s;j++){
p=p*j;
}
s++;
b=b+p;
}
cout<<b<<endl;
}
2018-12-03 06:42:16
#include<stdio.h>
int main()
{
int a,s=0,i;
scanf("%d",&a);
for(i=1;i<=a;i++)
{
s=s+(i*(i+1)*(i+2));
}
printf("%d",s);
return 0;
}
2018-12-03 06:41:38
#include<stdio.h>
int main()
{
int a,n;
scanf("%d",&a);
printf("%d",a+a*2+a*2+a*2+a*2+a*2*a);
return 0;
} joohnoo
© Spoj.com. All Rights Reserved. Spoj uses Sphere Engine™ © by Sphere Research Labs.