Completed Start: 10 Nov 2024, 09:00 End: 10 Nov 2024, 13:00 Timezone: Asia/Almaty
Meteorites with gold
10s
1GiB
The gravitational matrix works as it should! Every minute it pulls one meteorite to the station for further research and for finding gold on the meteorite. It is known that there are x meteorites around the station in total, and they will be pulled to the station one by one; g of them contain gold. After how many minutes, on average, will a meteorite with gold be pulled in?
The natural numbers x and g are given separated by a space. 0 < g <= x < 100000.
Output the answer as a decimal fraction (float).
Input
1 1
Output
1