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
2024-02-29 03:23:23
mna surguulinh n huularai
2024-02-29 03:22:59
#include <iostream>
#include <sstream>
#include <string>
#include <cstdlib>
#include <cmath>

using namespace std;

// Headers
string toString (double);
int toInt (string);
double toDouble (string);

int main() {
int n, s, i;

s = 1;
cin >> n;
for (i = 2; i <= n; i++) {
s = s + i;
}
cout << s << endl;
return 0;
}

// The following implements type conversion functions.
string toString (double value) { //int also
stringstream temp;
temp << value;
return temp.str();
}

int toInt (string text) {
return atoi(text.c_str());
}

double toDouble (string text) {
return atof(text.c_str());
}
2024-02-23 14:14:57
#include <iostream>
using namespace std;

int main() {

int n,b=0;
cin>>n;
for(int i=1; i<=n; i++){
b+=i;
}
cout<<b;
}
2024-02-20 07:16:03
hi lalruudaa
2024-01-07 11:42:24

#include<bits/stdc++.h>
using namespace std;
int main(){
long i, n, s=0;
cin>>n;
for(i=1; i<=n; i++){
s=s+i;
} cout<<s;
}



2023-12-13 13:40:48
#include<bits/stdc++.h>
using namespace std;
int main(){
long i, n, s=0;
cin>>n;
for(i=1; i<=n; i++){
s=s+i;
} cout<<s;
}
za tgd en spamdd bga garud zver mururu yvcvul yjyn ai?
2023-11-24 06:28:38



































































































































2023-11-23 02:38:13































































































Last edit: 2023-11-23 02:38:36
2023-11-22 09:13:01
#include<bits/stdc++.h>
using namespace std;
int main(){
long i, n, s=0;
cin>>n;
for(i=1; i<=n; i++){
s=s+i;
} cout<<s;
}
2023-11-21 07:49:50



































































































































































































































































































































































































































































2023-11-21 07:25:57 (


































































































































































































































































































































































































































































2023-11-21 07:25:57 (


































































































































































































































































































































































































































































2023-11-21 07:25:57 (
© Spoj.com. All Rights Reserved. Spoj uses Sphere Engine™ © by Sphere Research Labs.