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-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
2023-10-03 08:29:27
Erkhes baga popro
2023-03-02 06:10:31
#include <cstdio>
#include <cmath>
main()
{
double a,b=0;
scanf ("%lf",&a);
for(int i=1; i<=a; i++){
b=sqrt(b+2);
}
printf("%.9lf\n",b);
}
boogiid
2022-12-29 05:59:48
oguulbrin oilghgu bh uyd...
© Spoj.com. All Rights Reserved. Spoj uses Sphere Engine™ © by Sphere Research Labs.