Dad step length – And see, and the little daughter's – In cm. They begin to walk, putting their feet on one mark. How far will they walk before their feet are level again?
Write the solution to the problem as a function solve(A, B)
that returns the answer. You don't need to enter or withdraw anything!
Examples
# |
Input |
Output |
1 |
70 15 |
210 |
Запрещенные операторы:lcm;gcd