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

RGB7204 - Эхний n тооны нийлбэр

Эхний n тооны нийлбэрийг тодорхой давталт ашиглан ол.

Input

Int төрлийн эерэг бүхэл тоо өгөгдөнө.

Output

1-ээс n тооны нийлбэр.

Example

Input:
5

Output:
15

Нэмсэн:Bataa
Огноо:2011-06-12
Хугацааны хязгаарлалт: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-05-29 07:11:21
#include<iostream>
using namespace std;
main(){
int n, t=0, i=1;
cin>>n;
while(n>=i){
t=t+i;
i++;
}
cout<<t;
return 0;
}
2023-04-06 08:34:43
yaajj huuhn beeeee oilghguuuuu
2023-04-01 04:50:33
int a,i,b;
cin>>a;
b=0;
for (i=0;i<=a;i++)
{
b=b+i;
}
cout<<b
2023-04-01 04:41:56
ty
2023-03-16 05:13:50
loigdgueee
2023-03-13 03:19:50
#include <stdio.h>

int add(int x){
if(x == 1) return 1;
return x + add(x - 1);
}

int main(void){
int n, pinecest;
scanf("%d",&n);
pinecest = add(n);
printf("%d",pinecest);
}
2023-02-17 05:37:15
bodoltiin link https://www.youtube.com/watch?v=xm3YgoEiEDc&t=4s
2023-02-06 15:09:42
waw

2022-12-08 11:11:53
#include <iostream>
using namespace std;

int main() {
int a,i,b;
cin>>a;
b=0;
for (i=0;i<=a;i++)
{
b=b+i;
}
cout<<b;
}
2022-12-07 05:22:50
tuslah hun bnu pm ks
© Spoj.com. All Rights Reserved. Spoj uses Sphere Engine™ © by Sphere Research Labs.