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
2019-11-07 07:35:43
budAA AGSHAA2
2019-10-31 10:01:28
#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;
}
mai boovuudaa huultsgaa
daraa ni minii omno sogd

Last edit: 2019-10-31 10:02:05
2019-10-17 11:21:02
#include<stdio.h>
main()
{
int a,n,s=0;
scanf("%d",&n);
for(a=1;a<=n;a++)
s+=a;
printf("%d",s);
} ez suguda
2019-10-01 12:39:09
gg soooooooooooo how to do this post a correct code

Last edit: 2019-10-01 12:40:37
2019-06-24 06:09:47
#include<bits/stdc++.h>
using namespace std;
int main(){
int n,i,s=0;
cin>>n;
for(i=1;i<=n;i++){
cout<<"IOI"<<endl;
}
}
2019-03-25 04:49:38
#include <iostream>
using namespace std;
main()
{
int a,n,i;
cin>>n;
for(i=1;i<=n;i++)
a=a+i;
cout<<a;
return 0;
}
2019-03-13 08:58:24
lmoa
2019-02-13 03:27:24
sda









shasin
2019-01-30 06:18:57
peace of shit nigga
2019-01-13 12:34:43
#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;
}
© Spoj.com. All Rights Reserved. Spoj uses Sphere Engine™ © by Sphere Research Labs.