Saturday-golf time - HackerEarth Problem Solution

Saturday-golf time - HackerEarth Problem Solution

Input:

1
10

Output:

1.000000000000

PHP Implementation: