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

RGB7214 - Үржвэр нийлбэр 2

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

Input

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

Output

Нийлбэр

Example

Input:
5
Output:
35

Нэмсэн: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-03-10 08:26:16

































































































































llllllllllllllllllllllllllllllllllllllllllllllllll





































































































































l
l


















l




















l










































































































































































2023-02-27 02:15:31
moiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiii


















































Last edit: 2023-02-27 02:15:57
2022-10-27 07:55:42
#include<stdio.h>
int main(){
int i,n,s=0;
scanf("%d",&n);
for(i=1;i<=n;i++)
{s=s+i*(n-i+1);}
printf("%d",s);
}
2022-10-17 11:11:06
hennn hargdhgun bnhsd te
2022-10-14 03:57:41
#include<stdio.h>
int main(){
int i,n,s=0;
scanf("%d",&n);
for(i=1;i<=n;i++)
{s=s+i*(n-i+1);}
printf("%d",s);
} thank you monhnasan!
2022-10-03 05:57:31
NOMIO BITII HUULAAD BAI
2022-09-22 07:19:14
package fd;

import java.util.Scanner;

public class dasda {

public static void main(String[] args) {
// TODO Auto-generated method stub
Scanner scan = new Scanner (System.in);
System.out.print("A=");
int nu1 = scan.nextInt();
int a1 = 0;
for(int ii =1;ii<=nu1;ii++)
{
a1=a1+ii*(nu1-(ii-1));}
System.out.print(a1);
}
}
2022-09-14 05:56:00
#include<stdio.h>
int main(){
int i,n,s=0;
scanf("%d",&n);
for(i=1;i<=n;i++)
{s=s+i*(n-i+1);}
printf("%d",s);
}
Monhnasan
2022-05-26 02:46:31
eezps
2022-05-26 02:46:31
eezps
© Spoj.com. All Rights Reserved. Spoj uses Sphere Engine™ © by Sphere Research Labs.