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
2023-03-15 01:47:14
#include <stdio.h> {COuS}
int main() {
int a,b,c, s=0,n;
scanf("%d",&n);
for(a=0; a<=n; a++) {
for(b=0; a+b<=n; b++)
for (c=0;a+b+c<=n;c++){
s++;
}
}
printf("%d",s);
return 0;
}
2023-03-07 07:20:02
#include <iostream>
using namespace std;
int main() {
int a,b,c, s=0,n;
cin>>n;
for(a=0; a<=n; a++) {
for(b=0; a+b<=n; b++)
for (c=0;a+b+c<=n;c++){
s++;
}
} cout<<s;
return 0;
}
2023-02-02 10:51:42
i wish i knewww
i wish i knew you wanted meee
2023-01-12 07:03:18
super duper ultra mega dumb ass gemtsets
2023-01-10 08:15:21
hi
2022-12-10 03:52:47
#include <iostream>
using namespace std;

int main() {
int x,y,u,m,ax=0;
cin>>x>>y>>u>>m;
if(x!=y){
ax=ax+1;
}if(x!=u){
ax=ax+1;
}if(y!=m){
ax=ax+1;
}if(a!=x){
ax=ax+1;
}if(a!=x){
ax=ax+1;
}if(a!=b){
ax=ax+1;
}if(a!=b){
ax=ax+1;
}if(a!=b){
ax=ax+1;
}if(a!=b){
ax=ax+1;
}if(a!=b){
ax=ax+1;
}if(a!=b){
ax=ax+1;
}if(a!=b){
ax=ax+1;
}

return 0;
}
2022-12-08 07:11:13





























































































































hairtai shuu














































as big as sun



























unsy<33333333333333333333333333
2022-11-29 11:22:15
#include <iostream>
using namespace std;
int main() {
int a,b,c, s=0,n;
cin>>n;
for(a=0; a<=n; a++) {
for(b=0; a+b<=n; b++)
for (c=0;a+b+c<=n;c++){
s++;
}
} cout<<s;
return 0;
}
for ur mom
2022-11-26 12:50:35
manaihaan joohon soyltoi baiyaaa
2022-11-08 08:29:11
#include <bits/stdc++.h>
using namespace std;
int main() {
long long a,b,c,d,e,i,j,m,n,o,k[1000000],t[1000000],u[1000000];
string p,q,r,s[1000000];
char v,w,x[1000][1000];
double f,g,h,l[10000];
cin>>a;
cout<<(a+1)*(a+2)*(a+3)/6;
}
irmuun gomo sda huul2 sda
© Spoj.com. All Rights Reserved. Spoj uses Sphere Engine™ © by Sphere Research Labs.