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

RGB7215 - Үржвэр нийлбэр 3

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

Input

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

Output

Нийлбэр.

Example

Input:
6

Output:
44

Нэмсэн: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
2022-05-20 07:31:56
iimhen yum bodoj chadhgu bol uursduusu icheech psdakuda
2022-05-20 07:30:56
shorturl.at/qyRU7
2022-05-06 06:23:43
https://youtu.be/4tS6-MT3WqI
2022-03-30 10:12:08
https://youtu.be/dQw4w9WgXcQ
2021-11-19 00:14:59
int a,b=0,c,d=1;
Scanner cs = new Scanner(System.in);
a = cs.nextInt();
for(int i=2; i<=a; i+=2){
c=d*i;
b+=c;
d+=2;
}
System.out.print(b);
2021-04-23 09:27:32
#include <stdio.h>

main ()
{
long long int p=0;
int i=0, n, l=0;
scanf("%d",&n);
if (n%2==0)
{
for (i=2; i<=n; i+=2)
p=p+(i-1)*i;
printf("%lld",p);
}
else printf("tegsh too oruul");
}
2021-01-04 09:11:17
#include <bits/stdc++.h>
using namespace std;
int main(){
char URUU BOD MALUUDAA;
cin>>URUU BOD MALUUDAA;
b=32+A;
cout<<b;
return 0;
}
2019-11-16 04:31:43
#include <iostream>
#include <string>
using namespace std;
int main()
{
int n,s,i,a[1001];
string st;
cin>>n;
for(i=0;i<=n;i++)
cin>>st[i]>>a[i];
for(i=1;i<=n;i++)
cout<<st[i]<<a[i]<<endl;
return 0;
}
2019-11-10 05:12:39
#include <bits/stdc++.h>
using namespace std;
int main(){
char URUU BOD MALUUDAA;
cin>>URUU BOD MALUUDAA;
b=32+A;
cout<<b;
return 0;
}
2019-11-01 12:44:46
#include<cstdio>

int main ()
{
int n,s=0;
scanf("%d",&n);
for(int i=1; i<=n-1; i=i+2)
{
s=s+i*(i+1);
}
printf("%d", s);
return 0;
}
© Spoj.com. All Rights Reserved. Spoj uses Sphere Engine™ © by Sphere Research Labs.