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-10-31 17:15:35
x = int(input())
s = 0
for i in range(x):
s = s+i
print(s+x)
2023-10-31 07:10:25
nope nothing here

Last edit: 2023-10-31 07:10:42
2023-10-31 03:19:18
od duugee unsddeg 90o[kp0[o=[]\]
0=ª
2023-10-31 03:19:17
od duugee unsddeg 90o[kp0[o=[]\]
0=ª
2023-10-21 14:45:09
hulha boli mal ymu hulvl gomo shu
2023-10-17 12:55:36
990623
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
© Spoj.com. All Rights Reserved. Spoj uses Sphere Engine™ © by Sphere Research Labs.