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

RGB7090 - Шагай

k ширхэг шагайг орхиход /хаяхад/ буух ялгаатай боломжийн тоог ол. Шагай нь морь, тэмээ, хонь, ямаа гэсэн 4 янзаар бууна.

Input

Шагайны тоо өгөгдөнө.

Output

Ялгаатай буултын тоо.

Example

Input:
4

Output:
35

Нэмсэн:Bataa
Огноо:2013-01-14
Хугацааны хязгаарлалт: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
2022-04-12 12:53:07
#include <iostream>
using namespace std;

int main() {

int a,n;

cin>>n;

a=(n+1)*(n+2)*(n+3)/6;

cout<<a<<endl;



return 0;
}

huul psdanuudaa
2022-04-12 12:51:02
#include<bits/stdc++.h>
int main () {
int n,a;
cin>>n;
a=(n+1)*(n+2)*(n+3)/6;
cout<<a;
huuul
2022-04-04 12:24:01
#include<bits/stdc++.h>
using namespace std;
int pak(int n)
{
int m=1, i;
for(i=1; i<=n; i++)
m=m*i; return m;
}
int main()
{
int n, k=4, s, z;
scanf("%d", &n);
s=pak(n+4-1);
z=pak(4)*pak(n-1);

printf("%d", s/z);
return 0;
}


hentiii ganggg yea
2022-03-18 13:35:41
#include <iostream>
using namespace std;
int main(){
int k;
cin>>k;
cout<<(k+1)*(k+2)*(k+3)/6;
}
haha haruul har

2022-03-09 12:15:14
#include <iostream>
using namespace std;

int main() {
int n,i,j;
cin >> n;
for(i=1;i<=n;i++){
for(j=n;j>=i;j--){
cout << j << " ";
}
cout << endl;
}
return 0;
}#include <iostream>
using namespace std;

int main() {
int n,i,j;
cin >> n;
for(i=1;i<=n;i++){
for(j=n;j>=i;j--){
cout << j << " ";
}
cout << endl;
}
return 0;
}#include <iostream>
using namespace std;

int main() {
int n,i,j;
cin >> n;
for(i=1;i<=n;i++){
for(j=n;j>=i;j--){
cout << j << " ";
}
cout << endl;
}
return 0;
}#include <iostream>
using namespace std;

int main() {
int n,i,j;
cin >> n;
for(i=1;i<=n;i++){
for(j=n;j>=i;j--){
cout << j << " ";
}
cout << endl;
}
return 0;
}
2021-10-18 12:21:13
uunuuduu zoriulav
2021-10-18 12:21:02
#include <iostream>
using namespace std;

int main() {
int a, k, m, i;
cin >> k;
a=0;
m=0;
for(i=1;i<=k+1;i++){
a=a+i;
m=m+a;
}
cout << m;
}
2021-10-15 13:11:28
ooroo hii zayagu beshda mn
2021-10-15 13:10:50
uunuu har buduun pisda mn huulhaa boli
2020-06-20 07:24:25
#include <cstdio>
int main() {
int a,b;
scanf("%d",&a);
b=(a+1)*(a+2)*(a+3)/6;
printf("%d",b);
}ez!
© Spoj.com. All Rights Reserved. Spoj uses Sphere Engine™ © by Sphere Research Labs.