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

RGB7072 - Нийлбэр 3

Өгөгдсөн сондгой тоо n хүртэлх натурал сондгой тоонуудын нийлбэрийг ол. Давталт ашиглахгүй.

Input

Сондгой натурал тоо өгөгдөнө.

Output

Нийлбэр.

Example

Input:
9

Output:
25

Нэмсэн:Bataa
Огноо:2013-01-06
Хугацааны хязгаарлалт: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-12-03 08:07:40
yoo

Last edit: 2024-12-03 08:07:50
2024-05-16 06:17:44
#include<bits/stdc++.h>
using namespace std;
int n,i,j=0;
int main(){
scanf("%d",&n);
for(i=1;i<=n;i++){
if(i%2==1){
j=j+i;
}
else j=j+0;
}
printf("%d",j);
return 0;
}huuuuuull
2024-05-06 04:05:20
int n;
long long a;
cin>>n;
a=(n+1)/2;
a=a*a;
cout<<a;

huulzgaa novshnuudaa
2024-04-29 03:34:19
#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;

cin >> n;
s = (int) ((double) ((n + 1) * (n + 1)) / 4);
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-04-15 04:53:54
im egg king my name is anand

Last edit: 2024-04-15 04:54:37
2024-04-15 03:55:30
If someone dies, who is in more suffering? Is it the person who had to face the pain of death? Or is it us who has to face the pain of losing a friend?
2024-04-15 03:42:07
korn dog
2024-04-15 03:41:50
are you gay nigga i have n word pass negga
2024-01-10 04:04:46
#include<iostream>
using namespace std;
int main(){
int n,i,s=0;
cin>>n;
for(i=1; i<=n; i++){
if(i%2==1)
s=s+i;
}
cout<<s;
}
2023-09-18 18:11:40
//RGB7072
#include<iostream>
using namespace std;

int main()
{
int n,s;
cin >> n;
s = (n+1)*(n+1)/4;
cout << s;
return 0;
}
© Spoj.com. All Rights Reserved. Spoj uses Sphere Engine™ © by Sphere Research Labs.