atcoder#AGC047A. [AGC047A] Integer Product
[AGC047A] Integer Product
Score : points
Problem Statement
You are given real values . Compute the number of pairs of indices such that and the product is integer.
Constraints
- is given with at most 9 digits after the decimal.
Input
Input is given from Standard Input in the following format.
Output
Print the number of pairs with integer product (and ).
5
7.5
2.4
17.000000001
17
16.000000000
3
There are 3 pairs with integer product:
11
0.9
1
1
1.25
2.30000
5
70
0.000000001
9999.999999999
0.999999999
1.000000001
8