The ratio of product to the sum
Calculate the ratio of the product numbers of natural numbers to their sum.
Specifications
Input
In single line set to a positive N, not exceeding 2·109.
Output
The desired ratio, calculated with an accuracy of 3 znachuschih digits after the decimal point.
Problem information
Time Limit: 1 secondsMemory Limit: 64 MB
Balls for the passed test: 2
Complexity: 15% 493/577
Classes: Line program, Beginners
Example
Example input36 |
Example output2.000 |
| ← Mobile Phone | Problems | The height of the triangle → |
