Problem B
Fleytitala
Languages
en
is

Friðrik is killing time by skipping stones. He’s getting so good at it that he can decide how often the stone will bounce.
Friðrik starts by throwing the stone
Input
The input consists of two lines. The first line contains one
integer
Output
Print a single line with a floating point number, the total distance that the stone travels.
The output is considered correct if the number has a
relative or absolute error of at most
Scoring
Group |
Points |
Constraints |
1 |
25 |
|
2 |
50 |
|
3 |
25 |
No further constraints |
Sample Input 1 | Sample Output 1 |
---|---|
1 1 |
1.5 |
Sample Input 2 | Sample Output 2 |
---|---|
12 4 |
23.25 |
Sample Input 3 | Sample Output 3 |
---|---|
0 10 |
0.0 |