| Print the period of a fraction n/m | |
|---|---|
Complexity (1-100): 12
For the given integer numbers n and m in the range 1-1000000, print the shortest period of the reccuring decimal n/m. For example, the shortest period of the fraction 1/7 would be 142857, and for 103/107 it is 96261682242990654205607476635514018691588785046728971. |
|
| Solution: | solution.pas |
Book of programming problems is powered by UseBB 1 Forum Software | Contact Admin