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

RGB7236 - Квадрат язгуур доорх 2

(2+(2+...+(2)1/2)1/2...)1/2 илэрхийллийн утгыг ол. 1/2 буюу квадрат язгуур n удаа орно.

Input

Натурал тоо өгөгдөнө.

Output

Илэрхийллийн утга. Таслалаас хойш 9 оронгийн нарийвчлалтай гарга.

Example

Input:
3

Output:
1.961570561

Нэмсэн:Bataa
Огноо:2013-01-23
Хугацааны хязгаарлалт: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-07 04:40:45
Ganbolor<3 hairteii
2024-08-29 13:49:46
SPOJ submission 33434898 (C++ 4.3.2) plaintext list. Status: AC, problem RGB7236, contest RGB7. By bullet2 (Bullet), 2024-08-29 13:46:45.
#include <iostream>
#include <cmath>
#include <iomanip>

using namespace std;

int main() {
int n;
cin >> n;


double s = sqrt(2);
double g = 1;


for (int i = n - 1; i >= 1; --i) {
s = sqrt( 2 + s);

}

cout << fixed << setprecision(9) << s << endl;

return 0;
}
2024-05-23 18:43:40
import math

n = int(input())
x = float(0)

while n > 0:
x = 2 + (math.sqrt(x))
n = n - 1
x = math.sqrt(x)
print(round(x, 9))
hariun taaraad buruu hariult geshagd bhin
2024-05-10 06:10:18
#include <stdio.h>
#include <math.h>

int main() {
double a, c = 1, e = 0;
scanf("%lf", &a);
while (c <= a) {
e = sqrt(e + 2);
c++;
}
printf("%.9lf", e);
}
2024-03-05 11:43:56
ene ileerhilleelee oligtoihon bichjeej dee archaagui yum be

Last edit: 2024-03-05 11:44:27
2023-11-20 12:05:28















































































































































































































































































































































































2023-10-06 02:53:22
suvd gomo
2023-10-06 02:06:34
Come along with me
And the butterflies and bees
We can wander through the forest
And do so as we please
Come along with me
To a cliff under a tree
Where we can gaze upon the water
As an everlasting dream
All of my collections
I'll share them all with you
Maybe by next summer
We won't have changed our tunes
We'll still want to be
With the butterflies and bees
Making up new numbers
And living so merrily
All of my collections
I'll share them all with you
I'll be here for you always
And always be with you
Come along with me
And the butterflies and bees
We can wander through the forest
And do so as we please
Living so merrily

Last edit: 2023-10-06 02:08:37
2023-10-06 02:06:26
Itgel gay as fk
2023-10-03 08:30:06
Erkhes gomo
© Spoj.com. All Rights Reserved. Spoj uses Sphere Engine™ © by Sphere Research Labs.